Are you using a custom DataGridTableStyle? Use a custom DataGridTableStyle
where you add a GridColumnStyle for each column. For your date column, set
its GridColumnStyle to a DataGridTextBoxColumn. Then set the Format property
of DataGridTextBoxColumn for date formatting. See class DateTimeFormatInfo.
If this doesn't produce what you need, you'll have to create a class that
derives from DataGridTextBox and handle all input characters, then display
the date in the proper format.
HTH,
kevin aubuchon
"Gidi" <sh*****@hotmail.com.dontspam> wrote in message
news:44**********************************@microsof t.com...
hello, i'm asking this question for the third time because i got two
answers but the were no good.
i have dataGrid and one of the cell contains date. now i want that after
the user entered 2 char (2 numbers) a "/" will appear. i tried to catch it
with currentcellchanged event and by overriding a procces but the problem is
that while i'm still at the same cell when i'm cheking the text of the cell it
contains "" only when i'm moving to the next or previous cell it shows me
the right text.
now, i'm sure there's a way to do it, but which way is it???
thanks