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. Image for the cookie policy date
close icon

set multi-rows

Hi,
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?
Thanks,

Lan


1 Reply

HA haneefm Syncfusion Team 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\4.4.0.49\Windows\Grid.Grouping.Windows\Samples\FeatureSamples\EmployeeView

Best regards,
Haneef

Loader.
Live Chat Icon For mobile
Up arrow icon