[英]Pass Devexpress grid control values to texbox
如何使用 Devexpress Gridcontrol 将 gridview 中选定的行列值传递给 texbox?
click on gridView
under the GridControl
then go on Events find FocusedRowChanged
Event then go on there.点击
gridView
下GridControl
然后去活动找到FocusedRowChanged
事件之后再去那里。 the code is代码是
private void gridView1_FocusedRowChanged(s,e)
{
textEdit1.Text=gridView1.GetFocusedRowCellValue("fieldName1").ToString();
textEdit2.Text=gridView1.GetFocusedRowCellValue("fieldName2").ToString();
.
.
.
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.