【问题标题】:how to add a datetimepicker type column in DataGridView如何在 DataGridView 中添加 datetimepicker 类型列
【发布时间】:2013-03-02 11:13:33
【问题描述】:

我有一个表,其中有一个名为“From”的列,该列具有“Date”数据类型。

我想在我的 DataGridView 中添加一列,它可以选择日期时间选择器之类的日期。

谁能建议我如何在 DataGridView 中添加 datetimepicker 类型列

【问题讨论】:

    标签: sql-server-2008 nhibernate c#-4.0


    【解决方案1】:

    您可以使用 XAML 将 DatePicker 对象或 DateTimePicker(取决于可用的内容)添加到您的 DataGridView 中。只需将其命名为“dtp_whateverYouLike”,然后在您的代码中使用它即可。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-12-16
      • 2016-05-31
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多