简体   繁体   中英

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. the code is

private void gridView1_FocusedRowChanged(s,e)
{
   textEdit1.Text=gridView1.GetFocusedRowCellValue("fieldName1").ToString();
   textEdit2.Text=gridView1.GetFocusedRowCellValue("fieldName2").ToString(); 
   .
   .
   .
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM