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.

set multi-rows

Thread ID:





59990 Apr 25,2007 04:28 PM Apr 26,2007 02:03 PM Windows Forms 1
Tags: Grouping
Lan Mo
Asked On April 25, 2007 04:28 PM

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 02:03 PM

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.

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.