We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Basic question - How do I register for event?

Thread ID:





61471 May 25,2007 08:45 PM UTC May 25,2007 09:08 PM UTC WinForms 1
Tags: GridControl
York Davis
Asked On May 25, 2007 08:45 PM UTC

Need to register for data changed event of the grid. Essentially, if data in a grid cell changes, I need to be notified.

So I think I need:

this.theGrid.DataChanged += new XXX(myDelegateMethod);

But what is XXX?

Also, what should the signature of myDelegateMethod look like.

Appreciate any help!!

haneefm [Syncfusion]
Replied On May 25, 2007 09:08 PM UTC

Hi York,

What is XXXX?

XXXXX is a EventHandler delegate class. Below is a code snippet.

this.gridControl1.DataChanged +=new EventHandler(gridControl1_DataChanged);

private void gridControl1_DataChanged(object sender, EventArgs e)
{ Console.WriteLine("DataChanged Event"); }

But you can try handling the CellsChanged event to detect cell changes in a grid. Please try the suggestion and let me know if this helps.

this.gridControl1.CellsChanged +=new GridCellsChangedEventHandler(gridControl1_CellsChanged);
private void gridControl1_CellsChanged(object sender, GridCellsChangedEventArgs e)
{ Console.WriteLine("CellsChanged Event"); }

Best regards,


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon