0

给定DataGridViewCell Cell = DataGridView.CurrentCell;,我怎样才能选择所有文本Cell

4

1 回答 1

3

有一个BeginEdit方法来编辑 CurrentCell 并选择它的文本:

// Update CurrentCell to the provided Cell
// Can be skipped if Cell is actually the CurrentCell
Cell.DataGridView.CurrentCell = Cell;

// Change the grid's CurrentCell to edit mode and select text
Cell.DataGridView.BeginEdit(true);
于 2013-02-07T03:26:09.847 回答