?
Solved

How do I add an OnChange event handler to a DevExpress XtraGrid GridControl?

Posted on 2010-01-11
2
Medium Priority
?
2,764 Views
Last Modified: 2013-12-17
I am new to WinForms development.  I am a new coder on a large project.  

I need to add a message for certain condtions on the "OnChange" event.  (Sorry I speak ASP.NET mostly)

How do I attach a Method to the OnChange event or a Row or Cell of a DevExpress.XtraGrid.GridControl?

Thanks!!
0
Comment
Question by:Bruce
[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 Comments
 
LVL 22

Accepted Solution

by:
p_davis earned 2000 total points
ID: 26287736
there are two events with row changes .

one fires before and is called beforeLeaveRow
the other is after the focus change and is FocusedRowChanged.

you can get to these through the designer for the GridControl's GridView
or you can += then in the form load event.

after that you can put whatever method calls you want in those events, when they fire.
0
 
LVL 1

Author Closing Comment

by:Bruce
ID: 31675758
Thanks!

After a little more digging and found an event that I can attach a method to, ValidatingEditor.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
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…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

752 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