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

How can I display fixed rows count in GridDataBoundGrid?

Thread ID:





17187 Aug 3,2004 08:38 AM UTC Aug 3,2004 12:32 PM UTC WinForms 3
Tags: GridControl
Andrey Plinda
Asked On August 3, 2004 08:38 AM UTC

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

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

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 09:57 AM UTC

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

Administrator [Syncfusion]
Replied On August 3, 2004 12:32 PM UTC

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.


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

Live Chat Icon For mobile
Live Chat Icon