Click here to Skip to main content
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 6:54am
Edited 8-May-12 3: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 285
1 Zoltán Zörgő 170
2 OriginalGriff 140
3 Sergey Alexandrovich Kryukov 120
4 Maciej Los 115
0 OriginalGriff 7,740
1 DamithSL 5,769
2 Sergey Alexandrovich Kryukov 5,424
3 Maciej Los 5,076
4 Kornfeld Eliyahu Peter 4,539


Advertise | Privacy | Mobile
Web03 | 2.8.141223.1 | Last Updated 9 May 2012
Copyright © CodeProject, 1999-2014
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