Abhishek Singh
Abhishek Singh

Reputation: 63

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

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 :)

Upvotes: 1

Views: 324

Answers (1)

Abhishek Singh
Abhishek Singh

Reputation: 63

Following setting

this.gexContributor.EnterKeyBehavior = EnterKeyBehavior.None;

at the designer.cs level would fix this issue.

Upvotes: 1

Related Questions