Click here to Skip to main content
15,670,482 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to put a datetimepicker as a column in a datagridview using C#?

1 solution

You can create yet another class derived from System.Windows.Forms.DataGridViewCell and another one derived from System.Windows.Forms.DataGridViewColumn, put the date/time picker control in your cell and override System.Windows.Forms.DataGridViewCell.Value and System.Windows.Forms.DataGridViewCell.ValueType:[^],[^].

Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900