如何添加日期时间选择器 [英] how to add date time picker

查看:71
本文介绍了如何添加日期时间选择器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我需要在datagridview中添加日期时间选择器....我在datagridview中进行如下编码

它无法正常工作,需要使用添加按钮将其插入到datagridview的日期列中

请支持我

Hi

I need to add date time picker to datagridview .... I coded like following inside the datagridview

it''s not working and need to insert to date column of datagridview using add button

kindly support me

DateTime curDate;
if (DateTime.TryParse(row.Cells[3].Value.ToString(), out curDate))
{
    dateTimePicker1.Value = curDate;
}

推荐答案

请看下面的波纹管链接:
通用DataGridView V2.0 [
Please have a look on the bellow link :
Generic DataGridView V2.0[^]


请参阅下面的链接,该链接演示了如何在gridview中添加日期时间选择器:-
Windows DataGridColumns用户控件 [
refer below link which demonstrate how to add datetime picker in gridview:-
Windows DataGridColumns User Controls[^]


这篇关于如何添加日期时间选择器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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