显示数据阅读器时出现问题 [英] problem in displaying data reader

查看:103
本文介绍了显示数据阅读器时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好
我有一个数据读取器,我填写了运行时间,其中包括员工的(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.


这篇关于显示数据阅读器时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆