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.

How can I display fixed rows count in GridDataBoundGrid?

Thread ID:

Created:

Updated:

Platform:

Replies:

17187 Aug 3,2004 04:38 AM Aug 3,2004 08:32 AM Windows Forms 3
loading
Tags: GridControl
Andrey Plinda
Asked On August 3, 2004 04:38 AM

DataSet contain 100 records. I need to display first 20 records. Best regards.

Administrator [Syncfusion]
Replied On August 3, 2004 04:45 AM

You can set the size of the grid so it can display the first 20 records. this.gridDataBoundGrid1.Size = new Size(this.gridDataBoundGrid1.Size.Width, this.gridDataBoundGrid1.Model.RowHeights.GetTotal(0, 20));

Andrey Plinda
Replied On August 3, 2004 05:57 AM

Sorry, but it''s not working. See attached project. FixedRowCountInGrid_6028.zip

Administrator [Syncfusion]
Replied On August 3, 2004 08:32 AM

You have this.gridDataBoundGrid1.Dock = System.Windows.Forms.DockStyle.Left; This supercedes any explicit sizng of the grid as it is docked left which menas its height is determined by its parent. If you comment out that line (from the designer generated code), the buttons work to show 10 and 20 rows for me.

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.

;