gridview1是主视图,gridview2是其子视图
gridview1中的多行就对应了多个gridview2实例,那么通时展开多个gridview1中的多个行,
并且在这些展开的行中点不同gridview2的行时,gridview1的焦点行是不会自动切换的的
需要做如下处理(这里还包括了了gridview2中的checkboxedit)
gridView2.GotFocus += (s, e) => { var gv = s as GridView; if (gv.FocusedRowHandle >= 0) { //SourceRowHandle指向对应的MasterView的RowHandle //NND,为什么不叫MasterRowHandle呢??? gridView1.FocusedRowHandle = gv.SourceRowHandle; } };
标签:gv,gridview,devexpress,detail,视图,gridview1,gridview2 From: https://www.cnblogs.com/wdfrog/p/18375311