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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Max RowCount in DGBG

Thread ID:





50492 Oct 12,2006 01:12 PM UTC Oct 12,2006 10:43 PM UTC WinForms 1
Tags: GridControl
Simon Kakon
Asked On October 12, 2006 01:12 PM UTC

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


Administrator [Syncfusion]
Replied On 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.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon