Articles in this section
Category / Section

Resize the column width while editing in a cell in WinForms GridGrouping.

2 mins read

Resize the column width

In order to increase the ColumnWidth while editing the cell in WinForms GridGroupingControl, 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.

C#

//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;

 

VB

'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

 

Screenshot

Resize the column width while editing a cell

Samples:

C#: Resize the ColumnWidth CS

VB: Resize the ColumnWidth VB

Conclusion

I hope you enjoyed learning about how to resize the column width while editing in a cell in WinForms GridGroupingControl.

You can refer to our WinForms GridGroupingControl’s feature tour page to know about its other groundbreaking feature representations. You can also explore our WinForms GridGroupingControl documentation to understand how to present and manipulate data. 

For current customers, you can check out our WinForms from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our WinForms GridGroupingControl and other WinForms components.

If you have any queries or require clarifications, please let us know in comments below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

 

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied