I wanted to know how to do to click on a cell to select all the content, because it only remains to edit. PD: SelectAll () would serve but as it is devexpress.
I wanted to know how to do to click on a cell to select all the content, because it only remains to edit. PD: SelectAll () would serve but as it is devexpress.
If you only want to allow to select, without entering the edit, you should define the grid as ReadOnly = true
On the other hand to select the full row defines
with the option FullRowSelect
in this way the full row will be selected.
If you want to control when editing enters the cell you could define the property EditMode with the value EditProgrammatically
and then in the event double click put in cell editing
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
dataGridView1.BeginEdit(true);
}
also remember to define the SelectionMode = FullRowSelect
Your data dataGridView modifies the SelectionMode property
dataGridView1.SelectionMode = DataGridViewSelectionMode.FullRowSelect;