J
Jack Kaufmann
I am trying to verify a datagrid in which there must be an entry in both
columns of any new row, and those values must be greater than the
corresponding values in the previous row. It is pretty simple to verify the
cell the user starts in by invoking a verifying event for the underlying
textbox in that cell, but what I would like to do is to change the focus to
the other column in the new row if it has not been filled in. If in
handling the verifying event for the first column I include e.cancel = true
I will come back to that column in the new row, but if before or after doing
that I change the currentcell to the other column, I don't come back. If I
don't include e.cancel, of course, the focus goes whereever the user went in
triggering the verifying event. Any ideas re how in verifying one cell I
can get the user back to another cell in the datagrid? Many thanks.
columns of any new row, and those values must be greater than the
corresponding values in the previous row. It is pretty simple to verify the
cell the user starts in by invoking a verifying event for the underlying
textbox in that cell, but what I would like to do is to change the focus to
the other column in the new row if it has not been filled in. If in
handling the verifying event for the first column I include e.cancel = true
I will come back to that column in the new row, but if before or after doing
that I change the currentcell to the other column, I don't come back. If I
don't include e.cancel, of course, the focus goes whereever the user went in
triggering the verifying event. Any ideas re how in verifying one cell I
can get the user back to another cell in the datagrid? Many thanks.