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

Row height in grid grouping control..

Thread ID:





48652 Aug 31,2006 08:41 PM UTC Sep 1,2006 04:58 AM UTC WinForms 1
Tags: GridControl
Naieem Khan
Asked On August 31, 2006 08:41 PM UTC

I want to change my Grid.Size dynamically to have scroll free view.

How do I calculate sum of Height of all the rows (with different heights) present in a grid grouping control?

Thanks in advance

Administrator [Syncfusion]
Replied On September 1, 2006 04:58 AM UTC

Hi Naieem,

Use GetTotal method to get the total size of the specified range of rows or columns in the grid.

//Get the rowheight of all rows in a grid.
int height = this.gridGroupingControl1.TableModel.RowHeights.GetTotal(0,this.gridGroupingControl1.TableModel.RowCount);
Console.WriteLine(" Height = " + height);

Let me know if this helps.


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