Display maximun rows

I have a dataset with say 100 order rows.

I would like to ask whether I can limit the number of row displayed in the grid e.g when the grid is sorted by Price Column, only top 20 highest price order are displayed but when it is sort by Quantity Column, top 20 highest quantity order are display.

Thanks.

1 Reply

HA haneefm Syncfusion Team August 3, 2007 02:48 PM UTC

Hi Jasper,

You can try calling the Hidden.SetRange method to hide/show the specified range of rows in a grid. Below is a code snippet

[C#]
grid.Model.Rows.Hidden.SetRange(21, grid.Model.RowCount, true)

Best regards,
Haneef

Loader.
Up arrow icon