DataGridView: SelectRow if EditMode=EditOnEnter
-
Once a user clicks in the grid the cell is selected. If they then select the entire row, pressing Delete deletes the contents of the selected cell, not row? Is there a way round that?
-
Once a user clicks in the grid the cell is selected. If they then select the entire row, pressing Delete deletes the contents of the selected cell, not row? Is there a way round that?
depends on what your current sourcecode situation is
In Word you can only store 2 bytes. That is why I use Writer.
-
depends on what your current sourcecode situation is
In Word you can only store 2 bytes. That is why I use Writer.
Managed it this way private void dgvOrders_RowHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e)
{
Validate();
BindingContext[dsOrders, "Orders"].EndCurrentEdit();
dgvOrders.Rows[e.RowIndex].ErrorText = "";
}But going to ask another question - if CellValidating has raised an error, how do I cancel that.