ratty
ratty

Reputation: 13434

How add the string in listview and strech it in row?

Create one listview and add the item in listview like

listview1.Items.Add(new ListViewItem("hello i am working in C#");

I would like to output like this:

hello i am working in C#

Instead of this i am getting like this:

hello.....

When click that I got like this:

hello i
am working in
C#

How can I solve this?

Upvotes: 0

Views: 3727

Answers (1)

Bolu
Bolu

Reputation: 8786

set listView1.View=View.List;

For more information: ListView.View Property

Upvotes: 2

Related Questions