VS 2003中下面的语句正常:
int row = this.dataGrid1.CurrentCell.RowNumber;
this.dataGrid1.CurrentCell = new DataGridCell(row + 1, 0); 但VS 2005中不正常了,CurrentCell不包含RowNumber的定义,请问如何改写?
int row = this.dataGrid1.CurrentCell.RowNumber;
this.dataGrid1.CurrentCell = new DataGridCell(row + 1, 0); 但VS 2005中不正常了,CurrentCell不包含RowNumber的定义,请问如何改写?
解决方案 »
- WPF中combobox的IsFocused
- 关于C#开发ActiveX参数问题
- 我在c#下编写用户控件时出的问题。
- 问高手,用visual c#写了个小软件,测试没问题,发布后不能安装时什么原因
- 请问在vs2003中如何在DataGrid中添加带button的列(急)
- C#.NET aspx页里的连接都是.html的,右键aspx页在浏览器中查看可以显示,但是半分钟后就报错了,提示找不到页!什么原因啊?
- 串口数据处理问题
- 关于属性(Attributes)的问题
- 分不是问题请说话,只要给我一个例子就行。
- 怎么在listView上点击鼠标右键时弹出菜单阿。
- 用c#在vs2005上编写小游戏程序
- C#中的mapobject问题
1楼说的是在RowDataBind事件中的取法:int row = e.Row.RowIndex;
在SelectedIndexChanged事件中的取法:int row = GridView1.SelectedIndex;
等等!!
int n = DataGirdview.CurrentRow.Index;
this.DataGirdview.CurrentCell = CL[0, n];
楼上的谢谢咯