簡體   English   中英

在DataGridView中更新行后如何設置對更新行的關注?

[英]How to set focus on updated row after updating row in DataGridView?

在DataGridView中更新行后如何設置對更新行的關注?

我想在更新行后將焦點放在更新的行上,然后顯示datagrridview

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

采用

    '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)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM