English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I'm doing a program in VB.NET Windows Form.
How to create a listview that support multiline for the row??
I want the column height to auto adjust base on the contains of the column (wordwrap)

2006-11-26 17:33:56 · 1 answers · asked by BabyPapa23 1 in Computers & Internet Programming & Design

1 answers

Instead of a listview, you could use a DataGridView with a single text column. Use the following properties:

RowHeadersVisible = false
ColumnHeadersVisible = false
AutoSizeColumnsMode = Fill
AutoSizeRowMode = AllCells

You'll also need to set the DefaultCellStyle. In there, set WrapMode = True.

2015-06-03 10:40:13 · answer #1 · answered by Jeremy 6 · 0 0

fedest.com, questions and answers