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

set multi-rows

Thread ID:





59990 Apr 25,2007 08:28 PM UTC Apr 26,2007 06:03 PM UTC WinForms 1
Tags: Grouping
Lan Mo
Asked On April 25, 2007 08:28 PM UTC

V4.4.0.51 & VS2003
For GGC form, I want to have two buttons to set the grid layout:

1. Auto-Columns-Width button
click it to set columns'width to auto-fit its content.

2. Auto-Wrap to multiple rows button
click it to wrap columns to multiple rows. (this is very useful when there are 30 clumns in the grid, want to display each record in multiple rows so that all columns are visible in the grid)

Is there any samples for that?


haneefm [Syncfusion]
Replied On April 26, 2007 06:03 PM UTC

Hi Lan,

Issue 1:

You can try this code snippet to resize the column-width to fit its content

this.gridGroupingControl1.TableModel.ColWidths.ResizeToFit(GridRangeInfo.Table(),GridResizeToFitOptions.GridResizeToFitOptions.IncludeHeaders );

Issue 2:

Please refer to EmployeeView browswer sample that demonstrates multiple rows per record in a grid..
C:\Program Files\Syncfusion\Essential Studio\\Windows\Grid.Grouping.Windows\Samples\FeatureSamples\EmployeeView

Best regards,


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