Control width of columns in listview

R

Rob

How do you control the column width of a listview ?

Funny thing....
When I use the emulator the list view appears to populate with reasonable
column widths, however, when I port the app to a PDA, it populates with
adequate column widths initially, but when I call the listview a second
time, all columns are bunched together on the left hand margin.

Anyone know how to explicitly control the column widths of a listview ?

Thanks !
 
G

Guest

You adjust the ListView's Colums property.

lvwList.Columns[columnIndex].Width = newWidth;

My guess is you have it set to autowidth and some columns are empty.

-Chris
 
R

Rob

Thanks Chris



You adjust the ListView's Colums property.

lvwList.Columns[columnIndex].Width = newWidth;

My guess is you have it set to autowidth and some columns are empty.

-Chris


Rob said:
How do you control the column width of a listview ?

Funny thing....
When I use the emulator the list view appears to populate with reasonable
column widths, however, when I port the app to a PDA, it populates with
adequate column widths initially, but when I call the listview a second
time, all columns are bunched together on the left hand margin.

Anyone know how to explicitly control the column widths of a listview ?

Thanks !
 

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