Articles in this section
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

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)
Please sign in to leave a comment
Access denied
Access denied