ado.net编码 [英] ado.net coding

查看:186
本文介绍了ado.net编码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有三个文本框和标签
一个datagridview,其中三列包含数据
col1:firstname
col2:midilname
col3:lastname
单击gridview列时.然后应该在文本框中显示数据.我该如何为该项目进行编码.
我也需要comed....

I have three textboxes and lable
and one datagridview with three columns with data
col1:firstname
col2:midilname
col3:lastname
when click the gridviewcolumns. then data should be show in textbox how can I do the coding for this project.
i need comding also....

推荐答案

raghuyash写道:
raghuyash wrote:

单击时网格视图列.



我认为应该单击行"而不是列".然后,这才有意义,您可以在文本框中显示行值(所有3列都选择了一个值).

现在,由于您没有告诉Windows应用程序或Web应用程序,因此无论哪种情况,都请在RowSelect事件中编写代码.在这种情况下,获取选定的行值并将其显示在文本框中.

尝试!(当然,它看起来像是一项作业,因此如果您仍然无法获得它,请发表您的努力.)



I believe it should be clicking Row and not column. Then only it makes sense and you can show the row values (all 3 columns got one value selected) in textboxes.

Now, since you have not told windows app or Web app, in either case, write code in RowSelect event. In that, get the selected row values and show it in textboxes.

Try! (surely it looks like an assignment, so do post your effort if you are still unable to get it.)


这篇关于ado.net编码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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