Click here to Skip to main content
13,248,343 members (36,614 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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 21:38pm
Updated 31-Jul-12 5:04am
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 ("+=")?

1 solution

Rate this: bad
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

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 |
Web03 | 2.8.171114.1 | Last Updated 31 Jul 2012
Copyright © CodeProject, 1999-2017
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