DTPicker in DataGrid

pad

Member
Joined
Jan 18, 2005
Messages
14
Programming Experience
5-10
Hi...

I've a datagrid with multiple columns. In that one column i've to set as a time entry column. For that i need to allow that column only time entry. We should not enter other things in that column. How to do it...?

I have numerous rows (nearly 100) in that datagrid...

Tx in advance...
 

Paszt

Staff member
Joined
Jun 3, 2004
Messages
1,500
Location
Raleigh, NC - USA
Programming Experience
Beginner
Here's an MSDN article that shows how to add a DateTimePicker to a dataGrid: DataGridColumnStyle Class
This will show you the basic methods needed, then you could create a textBox that accepts only times and build your own DataGridColumnStyle that uses that textBox instead of the dataTimePicker.
 
Top Bottom