G
Guest
Column 0 in my unbound DataGridView is read-only. When the user tabs from the
last column of a row, I need the focus to go to column 1 of the next row, not
column 0.
Have tried a wide variety of events to accomplish this, but I always get:
"Operation is not valid because it results in a reentrant call to the
SetCurrentCellAddressCore function".
A simple example is:
private void dataGridItem_RowEnter(object sender, DataGridViewCellEventArgs e)
{
dataGridItem.CurrentCell =
dataGridItem.Rows[e.RowIndex].Cells[1];
}
Ignoring the error with Try/Catch almost works but not quite.
Would really appreciate any help.
Thanks
Bill.
last column of a row, I need the focus to go to column 1 of the next row, not
column 0.
Have tried a wide variety of events to accomplish this, but I always get:
"Operation is not valid because it results in a reentrant call to the
SetCurrentCellAddressCore function".
A simple example is:
private void dataGridItem_RowEnter(object sender, DataGridViewCellEventArgs e)
{
dataGridItem.CurrentCell =
dataGridItem.Rows[e.RowIndex].Cells[1];
}
Ignoring the error with Try/Catch almost works but not quite.
Would really appreciate any help.
Thanks
Bill.