1、写一个继承的DataGrid自已处理。
2、使用一变通的方法:
在CurrentCellChanged事件中,
datagrid.unselect(oldrow)
datagrid.select(currentnewrow)
hidecontrol.setfocus()
其中hidecontrol是一个专门用于转移焦点的控件,hidecontrol.Visibled=true,hidecontrol.left=-1000
2、使用一变通的方法:
在CurrentCellChanged事件中,
datagrid.unselect(oldrow)
datagrid.select(currentnewrow)
hidecontrol.setfocus()
其中hidecontrol是一个专门用于转移焦点的控件,hidecontrol.Visibled=true,hidecontrol.left=-1000
解决方案 »
- C# 寻求较好的金额数字添加千分位分隔符的方法。
- UpdatePanel关联外部的button出错不知是什么原因?
- 按钮事件
- 存儲過程求No字段最大數問題
- 如何获得DATAGRID中的数据,急!!!!在线等
- 如何能够捕捉到Shift和下箭头Down同时被按下的操作?
- C#.net的treeview绑定sql数据库,单击树形图节点,右边区域显示相应数据
- 这里有人从事ARCGIS开发吗
- 简单,简单:读取图象的问题!!
- 有100多个复杂运算,想用多线程分批处理(一次启动10个线程,该批线程结束后,再启动另一批),请问如何实现?
- 请问能在正则表达式中使用变量吗?
- 有没有人用 c#做 cad 开发的呵。。
this.dataGrid .Select (this.dataGrid .CurrentCell.RowNumber);