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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Data Changed event - GridGroupingControl

Thread ID:





19794 Oct 4,2004 05:32 PM UTC Oct 4,2004 07:05 PM UTC WinForms 1
Tags: GridControl
Albert Gao
Asked On October 4, 2004 05:32 PM UTC

In my application the datasource of gridgroupingcontrol is assigned to a DataView. I saw that when the data in data view changed, the display was updated accordingly. I need to catch this event and map the changed record to the row index where I can change the cell style. Which event should I subscribe to? If possible, please tell me how to corelate display and data. thanks, albert

Administrator [Syncfusion]
Replied On October 4, 2004 07:05 PM UTC

You can subscribe to the DataView''s ListChanged event to catch changes in the DataView. In the event handler, you can get the row position of teh changed row in the DataView and then map that to the grid row.
private void DefaultView_ListChanged(object sender, ListChangedEventArgs e)
	if(e.ListChangedType == ListChangedType.ItemChanged)
		GridRecord r = this.gridGroupingControl1.Table.UnsortedRecords[e.NewIndex] as GridRecord;
		int gridRowIndex = this.gridGroupingControl1.Table.DisplayElements.IndexOf(r);


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

Live Chat Icon For mobile
Live Chat Icon