如何在gridview设计winforms中添加datepicker列 [英] how to add datepicker column in gridview design winforms

查看:31
本文介绍了如何在gridview设计winforms中添加datepicker列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 winform C#.

I am using winform C#.

在那我如何在设计方法中在gridview中添加d​​atepicker列.我可以看到按钮、复选框、链接列.但缺少日期时间选择器.

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.

这篇指南文章提供了过程.

这篇关于如何在gridview设计winforms中添加datepicker列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆