Control width of columns in listview

  • Thread starter Thread starter Rob
  • Start date Start date
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 !
 
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
 
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 !
 
Back
Top