如何在gridview设计winforms中添加datepicker列
我使用的是 winform C#.
I am using winform C#.
在那我如何在设计方法中在gridview中添加datepicker列.我可以看到按钮、复选框、链接列.但缺少日期时间选择器.
In that how can i add the datepicker column in gridview in design method. I can see button, checkbox, link columns. but datetime picker is missing.
以及任何无需代码即可添加日期时间选择器的方法.如果可以,请告诉我....
And any way to add datetime picker without code. If possible please tell me....
请帮帮我,..
没有用于托管日期/时间选择器控件的内置选项.
There's no built-in option to host a date/time picker control.
但是,DataGridView
控件是非常可定制的,并且支持托管自定义控件.您所要做的就是扩展 DataGridViewColumn
类以创建自定义列,并通过扩展 DataGridViewCell
类创建自定义单元格.
However, the DataGridView
control is very customizable and supports hosting custom controls. All you have to do is extend the DataGridViewColumn
class to create a custom column, and create a custom cell by extending the DataGridViewCell
class.
这篇指南文章提供了过程.