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

Row counts and header counts

Is there some properties that show you the number of actual rows of data in a grid and another for the number of headerrows in that grid. Also what is row 0? It shows how many rows are in a grid automatically. Is there a way to set the Group Grid Control up so that the first row is the header and the rest are the data rows from a dataview object? Thanks.

1 Reply

AD Administrator Syncfusion Team April 28, 2006 05:51 AM UTC

Hi Craig, The number of data rows in a GridGroupingControl can be retrieved by this.gridGroupingControl1.Table.Records.Count In GridGroupingControl you won’t set the HeaderCount, but in causes like multiple rows per record the spanned row header information can be retrieved with help of this.gridGroupingControl1.TableModel.GetRowHeaderRange method. The row 0 in the GridGroupingControl will have a GridHiddenSection which is needed for the scrolling logic in the GridNestedTableControl. Since there will is a hidden section, always the column header row index will be above zero. When the caption section is hidden and when the column header is displayed at the top, the row index of the column header will be one. Let us know if you have any further queries. Regards, Calvin.

Loader.
Live Chat Icon For mobile
Up arrow icon