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.

ResizeToFit in GrigGroupingControl

Thread ID:

Created:

Updated:

Platform:

Replies:

35120 Sep 23,2005 01:02 AM Sep 27,2005 08:18 AM Windows Forms 6
loading
Tags: GridControl
Dmitry
Asked On September 23, 2005 01:02 AM

Hi. I need to arrange height of all rows in grid under their contents, including the lines containing captions of a grouping. I try to call this: Grid.TableModel.RowHeights.ResizeToFit( GridRangeInfo.Cols(0, Grid.TableDescriptor.Columns.Count), GridResizeToFitOptions.IncludeHeaders | GridResizeToFitOptions.IncludeCellsWithinCoveredRange ); But as a result the height of record rows in 2-3 times exceeds necessary, and lines of captions of a grouping are not arranged at all. What I do wrong?

Administrator [Syncfusion]
Replied On September 23, 2005 09:24 AM

Hi Dmitry You can add the CustomEngine.cs file from the "ResizableRows" samples of Syncfusion to your working project. You can access the "ResizableRows" project from your system in the following path. C:\program files\syncfusion\essential studio\3.2.1.0\Windows\Grid.Windows\samples\Grouping\ResizableRows And now , you can add your code of ResizeToFit and it should work fine. Thanks Mouli.

Dmitry
Replied On September 26, 2005 12:03 AM

Hi, Mouli. Thanks for reply. Before trying a code from the first post, I have already "switch on" Resizable Rows. After call ResizeToFit it sets heights of rows different, but as I already wrote, too greater. What do you think about it?

Dmitry
Replied On September 26, 2005 10:47 PM

Can somebody help me?

Administrator [Syncfusion]
Replied On September 27, 2005 08:05 AM

Hi Dmitry Here is a sample where I tried to resize using the "CustomEngine.cs" file . It works fine. Attached are the screenshots too. Here is the link for the sample. forum-resizerows.zip If this is not helping you, please let us know with the version of .NET and Syncfusion. Best Regards Mouli.

Administrator [Syncfusion]
Replied On September 27, 2005 08:08 AM


Administrator [Syncfusion]
Replied On September 27, 2005 08:18 AM

www.syncfusion.com/support/user/uploads/forum-resizerows.zip

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.

;