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.
Unfortunately, activation email could not send to your email. Please try again.

Max RowCount in DGBG

Thread ID:

Created:

Updated:

Platform:

Replies:

50492 Oct 12,2006 09:12 AM Oct 12,2006 06:43 PM Windows Forms 1
loading
Tags: GridControl
Simon Kakon
Asked On October 12, 2006 09:12 AM

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

Thanks

Administrator [Syncfusion]
Replied On October 12, 2006 06:43 PM

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

CONFIRMATION

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.

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.

;