Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

DevExpress Gridview Enter to trigger update event

Posted on 2013-06-05
3
Medium Priority
?
1,592 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 1000 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

Stressed Out?

Watch some penguins on the livecam!

Question has a verified solution.

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

A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

670 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