DevExpress Gridview Enter to trigger update event

Can anyway give me a code example for the following

DevExpress Gridview.

Enter key to trigger update when in edit mode and then trigger insert.
Esc key to trigger cancel when in insert mode.

Many thanks
ajdarlowAsked:
Who is Participating?
 
Ioannis ParaskevopoulosConnect With a Mentor Commented:
Hi,

You may check this:
http://www.devexpress.com/Support/Center/Example/Details/E352

It actually uses jscript in order to know what key was pressed, and if it is an "Enter" key (13) then it calls UpdateEdit, if "ESC" was pressed (27) then it calls CancelEdit.

Hope this helps.

Giannis
0
 
ajdarlowAuthor Commented:
Hi jyparask

I had tried this example before but with no luck.

However my Java script knowledge is growing daily.

That said I still cannot get it to work.

Have raised a ticket with DE so fingers crossed.

Will return when I get an answer from them.
0
 
ajdarlowAuthor Commented:
Thanks, finally got it working.
0
All Courses

From novice to tech pro — start learning today.