Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: .NET3.5
Hi All,
 
I have binded my own user control to the grid. I have updated the value from the control to the grid in the CellLeave Event. Its working when im pressing the TAB and leave from the cell. But the event is not getting fired when im pressing the ENTER key.
 
Can anyone pls help me on this.
Posted 30-Jul-12 20:38pm
Edited 31-Jul-12 4:04am
Malli_S25.2K
v3
Comments
Sandeep Mewara at 31-Jul-12 11:34am
   
Winform or WPF?
Sergey Alexandrovich Kryukov at 31-Jul-12 11:58am
   
Not a question. "The event is not getting fired" is not informative. You can always use the debugger to see what happens. Did the execution passed the point where the event handler is added ("+=")?
--SA

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

It sounds to me like your cell is accepting enter as input and not being left. You can write code to detect that enter was pressed, and leave the cell. I think there may be an 'accept enter' property as well that you can set, to change if enter is valid input, or if it leaves the cell
  Permalink  

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

  Print Answers RSS
0 mhegazy94 460
1 Sergey Alexandrovich Kryukov 405
2 Kornfeld Eliyahu Peter 285
3 Gihan Liyanage 167
4 Sibeesh KV 150
0 Sergey Alexandrovich Kryukov 6,805
1 OriginalGriff 6,696
2 CPallini 5,350
3 George Jonsson 3,609
4 Gihan Liyanage 2,792


Advertise | Privacy | Mobile
Web01 | 2.8.140922.1 | Last Updated 31 Jul 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