Z
zznw4m1
Guest
Hi,
I am using the DataGridView NewRow to allow the user to create a new database record. The DataGridViews StandardTab property is set to false so the default Tab action is to move from cell to cell. The problem I have is that when I tab from Cell 0 to Cell 1 on the data entry row, after the OnCellLeave event has fired the RowEnter event also fires. This only happens on the first cell and only if I use the Tab key. Tabbing from all of the other cells works correctly in that only the OnCellLeave event fires and if I use the mouse to click in Cell 1 rather than tabbing from Cell 0 the RowEnter event does not fire. Also the event does not fire when tabbing from Cell 0 to Cell 1 in any row other than the data entry row. I am using the RowEnter event to set a flag to say the user is creating a new record. When the event fires on tabbing from Cell 0 this unsets the flag. Has anyone else come across this problem and is there a solution?
Thanks,
Terry.
Continue reading...
I am using the DataGridView NewRow to allow the user to create a new database record. The DataGridViews StandardTab property is set to false so the default Tab action is to move from cell to cell. The problem I have is that when I tab from Cell 0 to Cell 1 on the data entry row, after the OnCellLeave event has fired the RowEnter event also fires. This only happens on the first cell and only if I use the Tab key. Tabbing from all of the other cells works correctly in that only the OnCellLeave event fires and if I use the mouse to click in Cell 1 rather than tabbing from Cell 0 the RowEnter event does not fire. Also the event does not fire when tabbing from Cell 0 to Cell 1 in any row other than the data entry row. I am using the RowEnter event to set a flag to say the user is creating a new record. When the event fires on tabbing from Cell 0 this unsets the flag. Has anyone else come across this problem and is there a solution?
Thanks,
Terry.
Continue reading...