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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

determining the display height of all rows

Thread ID:

Created:

Updated:

Platform:

Replies:

33148 Aug 14,2005 06:38 AM UTC Aug 19,2005 07:27 AM UTC WinForms 2
loading
Tags: GridControl
Mike Ralston
Asked On August 14, 2005 06:38 AM UTC

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 08:47 AM UTC

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 07:27 AM UTC

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.

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

;