The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
ADAdministrator Syncfusion Team December 6, 2006 08:58 AM UTC
Hi Leema,
This is by design. The Binder.RecordCount property returns the number of records in the root datasource. If you are displaying a grid with nested relations, the only the record count for the root data source is displayed ignoring any expanded nodes. If you want to find the expanded record in a grid, you can handle the RowExpanded and RowCollapsing event of the grid. Here is a code snippet to show this.
public class MyDataBoundGrid : GridDataBoundGrid { private int ExpandedRecordCount; public MyDataBoundGrid() { ExpandedRecordCount = 0; this.RowExpanded +=new GridRowEventHandler(MyDataBoundGrid_RowExpanded); this.RowCollapsing +=new GridRowEventHandler(MyDataBoundGrid_RowCollapsing); }