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.

determining the display height of all rows

Thread ID:

Created:

Updated:

Platform:

Replies:

33148 Aug 14,2005 02:38 AM Aug 19,2005 03:27 AM Windows Forms 2
loading
Tags: GridControl
Mike Ralston
Asked On August 14, 2005 02:38 AM

I would like to determine the height of all rows (the # of rows varies when the form is displayed) so that I can resize the form to "best fit" the grid---so that all the rows are displayed without having to scroll. Can you give some tips to do this. thanks

Administrator [Syncfusion]
Replied On August 14, 2005 04:47 AM

You can try: int height = this.grid.Model.RowHeights.GetTotal(0, this.grid.Model.RowCount); this.grid.ClientSize.Height = height; Here is a little sample. http://www.syncfusion.com/Support/user/uploads/SetGridHeight_929d4082.zip

Mike Ralston
Replied On August 19, 2005 03:27 AM

thanks for the sample.

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.

;