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.

Event raised when row count changes

Thread ID:

Created:

Updated:

Platform:

Replies:

91691 Nov 27,2009 09:25 AM Nov 30,2009 09:51 AM Windows Forms 1
loading
Tags: GridControl
Jeff King
Asked On November 27, 2009 09:25 AM

Hi,

Is there a way to receive a notification when the number of records displayed in a grid changes (this might be because a filter is applied or data is added/removed from the grid)?

Thanks
Jeff

Lingaraj S [Syncfusion]
Replied On November 30, 2009 09:51 AM

Hi Jeff,

Thank you for your interest in Syncfusion products.

Please try using below events in GridGroupingControl to achieve your functionality.

Refer the code below:

// It is fired when Filter apply in GridGroupingControl
this.gridGroupingControl1.TableDescriptor.RecordFilters.Changed += new Syncfusion.Collections.ListPropertyChangedEventHandler(RecordFilters_Changed);
// It is fired when SourceList cahnged in GridGroupingControl like Record add and delete
this.gridGroupingControl1.SourceListListChanged += new TableListChangedEventHandler(gridGroupingControl1_SourceListListChanged);
void gridGroupingControl1_SourceListListChanged(object sender, TableListChangedEventArgs e)
{
if (e.ListChangedType == ListChangedType.ItemAdded)
{
}
if (e.ListChangedType == ListChangedType.ItemDeleted)
{
}
}
void Table_SourceListChanged(object sender, TableEventArgs e)
{

}


Please let me know if you have any queries.

Regards,
Lingaraj S.

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.

;