0
鑑於DataGridViewCell Cell = DataGridView.CurrentCell;
,我如何選擇Cell
中的所有文本?全選在DataGridViewCell中
鑑於DataGridViewCell Cell = DataGridView.CurrentCell;
,我如何選擇Cell
中的所有文本?全選在DataGridViewCell中
有一個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);
完善,工程巨大,謝謝! –