C# how to display datetimepicker control for all rows of gridview

Posted by ronny on Stack Overflow See other posts from Stack Overflow or by ronny
Published on 2010-03-09T09:20:03Z Indexed on 2010/03/09 9:36 UTC
Read the original article Hit count: 524

Hi, In my application I am creating rows and columns dynamically. I created a column of type System.DateTime. After this i want to display datetimepicker control for all rows in that column.

I created a column using

dataTable.Columns.Add("CreatedOn", Type.GetType("System.DateTime"));


and i am adding rows as

foreach(String filename ......)
 dataTable_FileProperty.Rows.Add(filename,//here i want to add dateTimePicker

So, what is a solution for this.

EDIT: Please provide some code snippet. I am new to C#.net.
Thanks.

© Stack Overflow or respective owner

Related posts about c#

Related posts about datetimepicker