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
close icon

Event raised when row count changes

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

1 Reply

LS Lingaraj S Syncfusion Team November 30, 2009 02:51 PM UTC

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.

Loader.
Live Chat Icon For mobile
Up arrow icon