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

How to resize the column width while editing in a cell in WinForms GridGroupingControl?

Platform: WinForms |
Control: GridGroupingControl

Resize the column width

In order to increase the ColumnWidth while editing the cell, the following Boolean properties should be used.

1)AutoSize – This property Indicating whether the ColumnWidth should automatically increase when the edited text does not fit into the cell and GridStyleInfo.WrapText is false. If GridStyleInfo.WrapText is true, AutoSize property will affect the cell height.

2)WrapText – This property indicating whether the text should be wrapped into next line when it does not fit into a single line.

3)AllowTextBoxAutoSize – Automatically resize the cells while typing.


//To resize the ColumnWidth while editing the cell.
this.gridGroupingControl1.TableDescriptor.Appearance. AnyRecordFieldCell.WrapText = false;
this.gridGroupingControl1.TableDescriptor.Appearance. AnyRecordFieldCell.AutoSize = true;
this.gridGroupingControl1.TableModel.Options.UseRightToLeftCompatibleTextBox = false;
this.gridGroupingControl1.TableControl.AllowTextBoxAutoSize = true;



'To resize the ColumnWidth while editing the cell.
Me.gridGroupingControl1.TableDescriptor.Appearance. AnyRecordFieldCell.WrapText = False
Me.gridGroupingControl1.TableDescriptor.Appearance. AnyRecordFieldCell.AutoSize = True
Me.gridGroupingControl1.TableModel.Options.UseRightToLeftCompatibleTextBox = False
Me.gridGroupingControl1.TableControl.AllowTextBoxAutoSize = True



Resize the column width while editing a cell


C#: Resize the ColumnWidth CS

VB: Resize the ColumnWidth VB


2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

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

Live Chat Icon For mobile