日期:2014-05-19  浏览次数:20872 次

新增一条数据时,怎麼让dataGrid的光标移到最后的新增行中.
如上,解決馬上結貼。

------解决方案--------------------
dataGrid1.CurrentCell=new DataGridCell((DataTable) dataGrid1.DataSource).Row.Count,0)

大概是这个样子
------解决方案--------------------
DataView.Rows[DataView.RowCount - 1].Selected = true
这是DataGridView的实现方法,仅当参考!
------解决方案--------------------