Articles in this section

How to show multi-lines in WinForms GridListControl?

By default, WinForms 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 multi-line in a textbox.


C#

this.gridListControl1.Grid.RowHeights.ResizeToFit(GridRangeInfo.Table());
VB
Me.gridListControl1.Grid.RowHeights.ResizeToFit(GridRangeInfo.Table())
 Before Resizing

Before resize the multiline textbox

 

After Resizing

After resize the multiline textbox


Samples:

C#: Multiline support

VB: Multiline support

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