网格视图选择的行显示在文本框中? [英] Grid view selected row display in a textbox?
本文介绍了网格视图选择的行显示在文本框中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果我使用回车键在网格视图中选择了一行,则得到下一行的值(在texbox中显示).
if i select a row in grid view with enter key i got the value of next row(display in texbox).
How to get the value of selected row display in a textbox?
推荐答案
请提供一些示例代码(在预标记中),以便我们了解您要执行的操作做..
我认为这行不通吗?
Please supply some sample code (in pre tags) so that we can see what you are trying to do..
I assume this doesn''t work?
Dim r as DataRow = dgv.SelectedRows(0)
txtMyText.Text = r.Cells("ColumnName").Value.ToString
这篇关于网格视图选择的行显示在文本框中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文