Click here to Skip to main content
15,881,173 members
Please Sign up or sign in to vote.
1.00/5 (1 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
Updated 31-Jul-12 4:04am
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

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
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900