Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2859
  • Last Modified:

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

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
Bruce
Asked:
Bruce
1 Solution
 
p_davisCommented:
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
 
BruceAuthor Commented:
Thanks!

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

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now