M Marty Mar 2, 2005 #1 Is it possible to have a DateTimePicker in a DataGrid control date column? If so, can you please include some code. Thanks.
Is it possible to have a DateTimePicker in a DataGrid control date column? If so, can you please include some code. Thanks.
T Tim Wilson Mar 2, 2005 #2 You need to create a custom DataGridColumnStyle. The DataGridColumnStyle docs contain an example that shows you how to create a column style for a DateTimePicker control. http://msdn.microsoft.com/library/d...windowsformsdatagridcolumnstyleclasstopic.asp In addition, this might be a good article to read. http://www.codeproject.com/cs/miscctrl/WindowsDataGridColumns.asp I know there's some more information, and some already built classes, around on the web as well. You just need to google them.
You need to create a custom DataGridColumnStyle. The DataGridColumnStyle docs contain an example that shows you how to create a column style for a DateTimePicker control. http://msdn.microsoft.com/library/d...windowsformsdatagridcolumnstyleclasstopic.asp In addition, this might be a good article to read. http://www.codeproject.com/cs/miscctrl/WindowsDataGridColumns.asp I know there's some more information, and some already built classes, around on the web as well. You just need to google them.