M
Michael Barrett
Version: VS 2008, VB.Net
I have a Sub routine firing on a DataGrisView using either a doubleclick or
a key press. There are 10 columns, and it updates one of the columns by
incrementing it a specific value. That works fine.
The problem is the user has an option to do an incremental save. If they use
a key press or doubleclick to update the row and they try to save without
leaving the row, it doesn't recognize the new value.
I am pretty new to this control for data edits. Could someone help me out
with some code for this issue? What would you suggest to guarantee the row
edits are committed while it still has focus?
I tried BeginEdit/CommitEdit, but when using a key press it only works the
first one, then the cell gets focus, and the key press strokes appear in the
cell, which makes a mess.
I am sure I am overlooking something silly or simple. Thanks in advance for
any help.
Mike
I have a Sub routine firing on a DataGrisView using either a doubleclick or
a key press. There are 10 columns, and it updates one of the columns by
incrementing it a specific value. That works fine.
The problem is the user has an option to do an incremental save. If they use
a key press or doubleclick to update the row and they try to save without
leaving the row, it doesn't recognize the new value.
I am pretty new to this control for data edits. Could someone help me out
with some code for this issue? What would you suggest to guarantee the row
edits are committed while it still has focus?
I tried BeginEdit/CommitEdit, but when using a key press it only works the
first one, then the cell gets focus, and the key press strokes appear in the
cell, which makes a mess.
I am sure I am overlooking something silly or simple. Thanks in advance for
any help.
Mike