Writing a Date in DataGrid cell

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hello i'm writing a C# windows application and i dataGrid which contains
Kinds of Payment and one of the cells is a Payment Date witch the user is
entering and i want that after entering 2 numbers automaticy a "/" will
appear so the user won't have to enter it by it self. i manged to do it in a
simple text box but couldn't do it in my dataGrid.
for example i want that if the user entered 12 so a "/" will be written and
then the user entered 03 another "/" will appear and then the user will enter
the year 04 so at the end it will be written 12/03/04.

how can i do it????

thanks...
 
Hi
This is quite simple,you have to catch event of cell changed and check the
text so far,if there are 2 digits for the day so put / and the others the
same.
 
hi guy,
it's not so simple. i tried it and while you are still at the same cell the
text is empty, only when you leave the cell the data is changing.

how can i do it???
 
Back
Top