使用日期时间选择器在Grid View中编辑日期 [英] Editing date in Grid View with date timepicker

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

问题描述

我正在我的桌面应用程序窗体中使用DevExpress网格控件.它具有From_Date列.我将其设置为可编辑状态,然后通过Grid自己的DateTimeEdit输入日期. 问题是当我想使用键盘箭头键更改网格单元中日期时间选择器的值时,它将失去对新行的关注.使用箭头键的帮助....

i am using DevExpress Grid Control in my desktop application Form. it has column From_Date. I made it editable and i enter the date via DateTimeEdit which is Grid''s own. The problem is when i want to use keyboad Arrow Keys to change values of date time Picker in Grid Cell, It loses it focus to new row.. What property change or what code should i use to make changeable with arrow keys kindly Help....

推荐答案

您可以找到
You can find a complete example in MSDN. There you can see, that you have to derive a control of your own and so you can intercept key actions by implementing EditingControlWantsInputKey method. It is not complicated an you have the full control over your hosted DatePicker''s behaviour.


您好,Ali

您必须将DataGridView的EditMode属性设置为EditProgramatically.

让我知道它是否不能解决您的问题.
Hi Ali

You have to set DataGridView''s EditMode property to EditProgramatically.

Let me know if it doesn''t solve your problem.


你好ali

您已选择gridview选择datagridview任务以检查启用编辑.
hello ali

you have select gridview select datagridview task to check enable editing.


这篇关于使用日期时间选择器在Grid View中编辑日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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