0

更新 DataGridView 中的行后如何将焦点设置在更新的行上?

我想在更新行后将焦点放在更新的行上,然后显示 datagrridview

DataGridView.CurrentCell = DataGridView.Rows(RowIndex)...

4

1 回答 1

0

利用

    '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)
于 2012-09-04T08:52:01.090 回答