WinForm having Janus Gridex hangs /freezes when Enter key is pressed

262 views Asked by At

I have a windows form with Gridex Control which hangs when the 'Enter' key is pressed when editing a row. The 'Enter' key triggers 'EndCustomEdit' event and the win forms freezes.

Is there a way I can disable the triggering of 'EndCustomEdit' event while the enter key is pressed?.

I tried implementing Gridex 'EnterKeyBehavior' property inside 'EndCustomEdit' event and tried setting it to none value but didn't see the required result.

this.gexContributor.EnterKeyBehavior = EnterKeyBehavior.None;

The other possibility i can think of is to create keyDown or KeyPressed event handler and handles the enter key behavior.

Plz let me know your thoughts. Thanks in advance :)

1

There are 1 answers

1
Abhishek Singh On

Following setting

this.gexContributor.EnterKeyBehavior = EnterKeyBehavior.None;

at the designer.cs level would fix this issue.