Click here to Skip to main content
12,452,344 members (54,017 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: .NET3.5 .NET
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
Updated 31-Jul-12 4:04am
Malli_S29.1K
v3
Comments
Sandeep Mewara 31-Jul-12 11:34am
   
Winform or WPF?
Sergey Alexandrovich Kryukov 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
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160826.1 | Last Updated 31 Jul 2012
Copyright © CodeProject, 1999-2016
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