So, I have some datagridview that we set to FullRowSelect
. Users are now requesting selections on individual cells for copy functions.
I set the DataGridView
to CellSelect
, but when I launch the application, when I click on the row header, it does not highlight Full Row, but only the first column.
I tried using RowHeaderMouseClick
with CellMouseClick
to switch the selection mode, but in order for RowHeaderMouseClick
completely select it, I need to click on the row header several times.
private void DataGridView_RowHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e) { dataGridView1.SelectionMode = DataGridViewSelectionMode.FullRowSelect; }
How easy or not easy to switch between CellSelect
and FullRowSelect
back and forth depending on what they have selected in the grid?
Taryn
source share