Click here to Skip to main content
11,577,494 members (32,748 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# grid Data view
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....
Posted 7-May-12 5:54am
Edited 8-May-12 2:16am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Comments
aliasad106 at 8-May-12 8:14am
   
But can you tell me what should i do if i have to use deveExpress Grid Control and DevExpress DateEdit Control ?
Please help ! Millions of thanx in advance Smile | :)
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Hi Ali

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

Let me know if it doesn't solve your problem.
  Permalink  
Comments
aliasad106 at 8-May-12 9:45am
   
im not using .Net DataGridView control.. I am using DevExpress GridControl..
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

hello ali

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

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 DamithSL 180
1 OriginalGriff 115
2 Richard MacCutchan 100
3 Abhinav S 90
4 Peter Leow 80
0 OriginalGriff 820
1 Sergey Alexandrovich Kryukov 681
2 Abhinav S 528
3 F-ES Sitecore 420
4 Suvendu Shekhar Giri 375


Advertise | Privacy | Mobile
Web03 | 2.8.150603.1 | Last Updated 9 May 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100