|
this.gridGroupingControl1.SourceListListChanged += new Syncfusion.Grouping.TableListChangedEventHandler(gridGroupingControl1_SourceListListChanged);
void gridGroupingControl1_SourceListListChanged(object sender, Syncfusion.Grouping.TableListChangedEventArgs e)
{
if (e.ListChangedType == ListChangedType.ItemAdded || e.ListChangedType == ListChangedType.ItemDeleted)
{
//Index of last visible row.
int lastRowIndex = this.gridGroupingControl1.TableControl.ViewLayout.LastVisibleRow;
//Gets the number of rows in view.
int rowCount = this.gridGroupingControl1.TableControl.ViewLayout.VisibleRows;
}
} |
|
//Event triggering
this.gridGroupingControl1.CategorizedRecords += GridGroupingControl1_CategorizedRecords;
//Event customization
private void GridGroupingControl1_CategorizedRecords(object sender, TableEventArgs e)
{
if (recordsCount != e.Table.FilteredRecords.Count)
{
recordsCount = e.Table.FilteredRecords.Count;
//Index of last visible row.
int lastRowIndex = e.Table.FilteredRecords[recordsCount].GetRowIndex();
//Gets the number of rows in view.
int rowCount = recordsCount;
}
} |