ljcor
asked on
VB 2008 - Validate datagridview DATE entry
User is allowed to use long or short date entry method for a Datagridview field. The entry has to pass CellValidating.
I do not know how to test for a valid date entry. User can enter long or short date - but it has to be valid.
I do not know how to test for a valid date entry. User can enter long or short date - but it has to be valid.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Alternatively, you can handle the CellParsing event....
http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.cellparsing(VS.80).aspx
Wayne
http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.cellparsing(VS.80).aspx
Wayne
Whats cell validating? Could you please explain to us
thanks
thanks
ASKER
Sorry I disappeared: this Southern California guy posted the question and then fell asleep. Very sorry.
The grid is being populated by user data entry.
"cell validating" is the use of the Datagrid1_CellValidating event.
My question now: at what point in the sequence is the CellParsing event called? Before or after the CellValidating event?
The grid is being populated by user data entry.
"cell validating" is the use of the Datagrid1_CellValidating event.
My question now: at what point in the sequence is the CellParsing event called? Before or after the CellValidating event?
ASKER
Thanks much, Wayne
Wayne