DataGridView日期列中的DateTimePicker类型控件 [英] DateTimePicker-type Control in DataGridView Date Column

查看:320
本文介绍了DataGridView日期列中的DateTimePicker类型控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个DataGridView,其中有两列,其数据类型为Date.有没有一种方法,当单元格获得焦点时,我可以显示一个类似DeteTimePicker的控件,以便用户可以选择"一个日期而不是从头开始输入它?我要尝试做的事情与在Microsoft Access 2007中获取日期字段相同.

谢谢,Eddie

I have a DataGridView with two columns whose datatype is Date. Is there a way that when the cell gets the focus, that I can show a control like a DeteTimePicker so the user can "pick" a date rather than entering it from scratch? What I''m trying to do is the same thing you get in Microsoft Access 2007 for a date field.

Thanks, Eddie

推荐答案

表单还是Web应用程序? :doh:

无论如何 Google [ http://www.vbdotnetheaven.com/UploadFile/ankurmee/1219/Default.aspx [ ^ ]
Forms or web application?! :doh:

Anyways Google[^] helps as always.

http://www.vbdotnetheaven.com/UploadFile/ankurmee/1219/Default.aspx[^]


这篇关于DataGridView日期列中的DateTimePicker类型控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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