error(list view)

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

juli jul

Hello I am trying to do this:
this.listViewEx1.Items.IsReadOnly=true;

and get the following error:
C:\Temp\config\folder\ConfigBrowser\Form1.cs(183): Property or indexer
'System.Windows.Forms.ListView.ListViewItemCollection.IsReadOnly' cannot
be assigned to -- it is read only

How can I sove it?
Thanks a lot!
 
Hi,

It's a read only property, you cannot change it, btw it's always false
according to MSDN

what you want to do anyway?

cheers,
 
Hi,

Why?

What do you want to do ?

If you want it to be RO just do not add more elements

cheers,
 
Back
Top