General information
Category:
Coding, syntax and commands
Title:
How to CellValidating Date format DataGridViewTextBoxColumn?
Hi all,
I use vb.net , datagirdview(DataGridViewTextBoxColumn). i have a Date format field(DataGridViewCellStyle { Format=d }). (dd/MM/yyyy)
But i don't know how to CellValidating is better.Anyone try to do this ?
I want to + "/" "/" to cell.value when user entry 2 char (Day value), 2 char (Month value) and 4 char(year value), but i can't control user must entry numberic in cell,becuase i havn't find cell keypress event.
After when user entered cell.value and check valid Date.
for example 15/11/2012
Anyone know how to do? Thank you
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only