Category / Section
How to show multi-lines in WinForms GridListControl?
1 min read
Multiline support
By default, GridListControl can support multiline textbox and the content will be displayed based on the row height. The content can be automatically resized by using ResizeToFit () property to show multiline in a textbox.
Adding ResizeToFit
C#
this.gridListControl1.Grid.RowHeights.ResizeToFit(GridRangeInfo.Table());
VB
Me.gridListControl1.Grid.RowHeights.ResizeToFit(GridRangeInfo.Table())
Before Resizing
After Resizing
Samples: