【发布时间】:2012-09-04 07:08:00
【问题描述】:
DataGridView 更新行后,如何设置更新行的焦点?
我想在更新行后将焦点设置在更新的行上,然后显示 datagrridview
DataGridView.CurrentCell = DataGridView.Rows(RowIndex)...
【问题讨论】:
标签: vb.net
DataGridView 更新行后,如何设置更新行的焦点?
我想在更新行后将焦点设置在更新的行上,然后显示 datagrridview
DataGridView.CurrentCell = DataGridView.Rows(RowIndex)...
【问题讨论】:
标签: vb.net
使用
'update en refresh your datagrid like so.
myDataGrid.Update()
myDataGrid.Refresh()
'fill in the correct rowindex and column index and this will select/focus the
'correct row.
myDataGrid.Select(rowIndex, ColumnIndex)
【讨论】: