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.
Unfortunately, activation email could not send to your email. Please try again.

Basic question - How do I register for event?

Thread ID:

Created:

Updated:

Platform:

Replies:

61471 May 25,2007 04:45 PM May 25,2007 05:08 PM Windows Forms 1
loading
Tags: GridControl
York Davis
Asked On May 25, 2007 04:45 PM

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 05:08 PM

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,
Haneef

CONFIRMATION

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.

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.

;