I have a DataGridView bound to a binding source which is bound to a
BindingList<obj>. The first column is [Name], and the user can edit this
column.
I have it set to be edited programmatically, and have DoubleClick event
calling BeginEdit.
When the CellEndEdit event is fired, I save the record, re-sort the binding
source, go find the record, and set FirstDisplayedScrollingIndex to that
row.
This works great if the user clicks somewhere else on the grid or the form
while he is editing.
If the user hits Enter or Tab, it ends up on the next line, or one column
over on the same line, and not on the line where I asked for it to be
repositioned.
I think what is it doing is repositioning programmatically, and then
processing the Enter or Tab key and putting the user back in that location.
Any ideas how I can handle this to suppress the Enter or Tab keys in this
instance? Or if I am wrong in my supposition, what is wrong and how I can
fix it?
Thanks,
RobinS.
GoldMail.com