interface GridRowsState {
    additionalRowGroups?: {
        pinnedRows?: GridPinnedRowsState;
    };
    dataRowIds: GridRowId[];
    dataRowIdToIdLookup: GridRowIdToIdLookup;
    dataRowIdToModelLookup: GridRowIdToModelLookup<GridValidRowModel>;
    groupingName: string;
    groupsToFetch?: GridRowId[];
    loading?: boolean;
    totalRowCount: number;
    totalTopLevelRowCount: number;
    tree: GridRowTreeConfig;
    treeDepths: GridTreeDepths;
}

Properties

additionalRowGroups?: {
    pinnedRows?: GridPinnedRowsState;
}
dataRowIds: GridRowId[]
dataRowIdToIdLookup: GridRowIdToIdLookup
dataRowIdToModelLookup: GridRowIdToModelLookup<GridValidRowModel>
groupingName: string

Name of the algorithm used to group the rows It is useful to decide which filtering / sorting algorithm to apply, to avoid applying tree-data filtering on a grouping-by-column dataset for instance.

groupsToFetch?: GridRowId[]

Contains some values of type GridRowId that have been requested to be fetched either by defaultGroupingExpansionDepth or isGroupExpandedByDefault props. Applicable with server-side grouped data and unstable_dataSource only.

loading?: boolean

The loading status of the rows.

totalRowCount: number

Amount of data rows provided to the grid. Includes the filtered and collapsed rows. Does not include the auto-generated rows (auto generated groups and footers).

totalTopLevelRowCount: number

Amount of top level rows. Includes the filtered rows and the auto-generated root footer if any. Does not include the rows of depth > 0 (rows inside a group).

treeDepths: GridTreeDepths

Amount of nodes at each depth (including auto-generated ones)