Solved

DevExpress Gridview Enter to trigger update event

Posted on 2013-06-05
3
1,535 Views
Last Modified: 2013-06-17
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
0
Comment
Question by:ajdarlow
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 23

Accepted Solution

by:
Ioannis Paraskevopoulos earned 500 total points
ID: 39225041
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
 

Author Comment

by:ajdarlow
ID: 39245329
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
 

Author Closing Comment

by:ajdarlow
ID: 39253930
Thanks, finally got it working.
0

Featured Post

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question