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

Max RowCount in DGBG

Hi,
How can I force a GDBG to display a limited number of rows ?

Thanks

1 Reply

AD Administrator Syncfusion Team October 12, 2006 10:43 PM UTC

Hi Sim,

You can hide the rows that you dont want them to get displayed in grid, through the code below.

// To hide a single row
this.gridDataBoundGrid1.Model.HideRows[10] = true; // hides row 10

// To unhide a row
this.gridDataBoundGrid1.Model.HideRows[10] = true; // unhides row 10

// To hide more than one row
this.gridDataBoundGrid1.Model.HideRows.SetRange(fromIndex ,lastRowIndex, true);

// Following code displays first 10 rows in grid
this.gridDataBoundGrid1.Model.HideRows.SetRange(10, this.gridDataBoundGrid1.Model.RowCount, true);

Let me know if this is not what you needed.
Regards,
Rajagopal

Loader.
Live Chat Icon For mobile
Up arrow icon