setting listview column width?

H

hazz

when I display the listview as per the following code, I only see the 'F' of
"File Type" and the 'L' of "List Item text" underneath the column header.

How do I set the column width to a specified width? Thank you. -greg

listView1.Columns.Add("File type", 20, HorizontalAlignment.Left);


listView1.Items.Add("List item text", 20);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top