显示数据阅读器时出现问题
问题描述:
大家好
我有一个数据读取器,我填写了运行时间,其中包括员工的(id,name,address).
我想将鼠标悬停在其中任何一个上,并将数据显示在一个小的Java脚本弹出窗口中.
问题是当您将鼠标悬停在数据读取器上时如何从其读取ID.
有什么帮助吗?
谢谢
[edit]请从单词中删除幼稚的多余 e .[/edit]
hi all
i have adata reader that i fill in the run time which includes (id, name , address ) of the employees.
i want to mouseover on any one of them and appears the data into asmall java script popup.
the question is how to take the id from that datareader while you mouse over on it.
any help, please?
thanks
[edit]removed childish extra e''s from the word please.[/edit]
答
您不能将鼠标悬停在一个DataReader:它不是可见控件.
您最好将数据库输出绑定到DataGridView或类似数据库中,然后从那里开始工作...
You can''t mouse over a DataReader: it isn''t a visible control.
You would be better off binding the database output into a DataGridView or similar and working from there...
分析器1是正确的,数据读取器不是可见控件
您可以使用DataSet,并用所需的数据对其进行过滤
然后将数据集绑定到DataGridView
例如
Anser 1 is right, data reader is not a visible control
You can use DataSet, fil it with required data
and then Bound the DataSet to DataGridView
e.g
DataGridView.Source = DataSet.Tables[0];
希望它适用于U
Hope it Works for U
您是说GridView吗?然后,此 [
Did you mean GridView? Then, this[^] might help.