如何在VB.NET中的DataGridView中的特定单元格中添加datetimepicker? [英] How can i add datetimepicker to specific cell in DataGridView in VB.NET?
本文介绍了如何在VB.NET中的DataGridView中的特定单元格中添加datetimepicker?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
是否可以将datetimepicker添加到DataGridView中的特定单元格?
如果可能的话,我该如何通过代码进行操作?
谢谢
TONY
Hi all,
Is it possible that we can add datetimepicker to specific cell in DataGridView?
If possible,How can i do by code?
Thanks
TONY
推荐答案
转到Datagridview任务
选择Edit_column
然后从那里选择要添加DTP的列.
然后在列类型中,选择日历.
就是这样.
goto Datagridview task
Select Edit_column
then from there, select the column where you want to add the DTP.
then at the column type, select calender.
That is it.
请参见下面的链接,您可能会有所了解
带有ListBox的DataGridView控件 [
see below link you may get some idea
DataGridView Control with ListBox[^]
您好,
据我所记得,没有内置的DataGridViewDateTimeColumn-Class.幸运的是,您不必开发它,因为Microsoft已经为我们完成了此任务:
http://msdn.microsoft.com/en-us/library/7tas5c80% 28VS.80%29.aspx [ ^ ]
祝你好运!
Hello,
as far as I remember, there is no built-in DataGridViewDateTimeColumn-Class. Luckily, you don''t have to develop it, ''cause Microsoft already did this for us:
http://msdn.microsoft.com/en-us/library/7tas5c80%28VS.80%29.aspx[^]
Good luck!
这篇关于如何在VB.NET中的DataGridView中的特定单元格中添加datetimepicker?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文