litview properties questions

  • Thread starter Thread starter juli jul
  • Start date Start date
J

juli jul

Hello,
I want to make the first column not editable in a listview
How can I do it?
And I also want the 2 columns of the listview to be the only 2 columns
and to fill all the list view with them.
How to do that?
Thank you !
 
ListView.LabelEdit = false;

foreach (ColumnHeader header in ListView.Columns)
{
header.Width = -2;
}


Jason Newell, MCAD
Software Engineer
 
Hello,
I want to make the first column not editable in a listview
How can I do it?

myList.LabelEdit = false;
And I also want the 2 columns of the listview to be the only 2 columns
and to fill all the list view with them.
How to do that?

something like:
myList.Columns[1].Width = myList.Width - myList.Columns[0].Width;

hth
 
Hello,
I did that but I still have the extra space there except for my 2
columns.How can I get rid of it?
Thank you very much!
 
Back
Top