Hello all,
I am working on a project that has a datagrid bound to a dataset (well, a table of the dataset). This has worked nicely to this point, however, I need to be able to allow a user to put a straight set of numbers (without slashes) in a date field. I have the function to change the numbers (ex: 01012001) to a readable format (ex: 01/01/2001), but the datagrid is not allowing me to make the change before it reads the numbers as an invalid date and resets it to its default. I have tried dataset rowchanging, rowchanged, columnchanging, columnchanging events as well as datagrid currentcellchanged...and can not catch the value before the grid automatically rolls the change back to default. Any ideas?? I've been working on this for a bit and cannot seem to get it to work. If you need any more info on it, let me know and I'll attempt to clarify.
Thanks in advance,
Kevin
- "The truth hurts, maybe not as much as jumping on a bicycle with no seat, but it hurts.
I am working on a project that has a datagrid bound to a dataset (well, a table of the dataset). This has worked nicely to this point, however, I need to be able to allow a user to put a straight set of numbers (without slashes) in a date field. I have the function to change the numbers (ex: 01012001) to a readable format (ex: 01/01/2001), but the datagrid is not allowing me to make the change before it reads the numbers as an invalid date and resets it to its default. I have tried dataset rowchanging, rowchanged, columnchanging, columnchanging events as well as datagrid currentcellchanged...and can not catch the value before the grid automatically rolls the change back to default. Any ideas?? I've been working on this for a bit and cannot seem to get it to work. If you need any more info on it, let me know and I'll attempt to clarify.
Thanks in advance,
Kevin
- "The truth hurts, maybe not as much as jumping on a bicycle with no seat, but it hurts.