ListView - Listitem shouldn't be changeable by user
Hi,
I have a question to my ListView. I'm using the View "lvwReport" and my Listview has 10 "Columns" or Subitems.
If the Userform is shown, I can change the first Subitem manually.
How can I lock this Listitem, so that nobody except my code can change the value of this item?
Thanks for each suggestion.
Re: ListView - Listitem shouldn't be changeable by user
The easiest way would be to disable it.
Re: ListView - Listitem shouldn't be changeable by user
Excuse me for this stupid question, but... HOW? :D
Re: ListView - Listitem shouldn't be changeable by user
Through its property page.
Set enabled to false
or
right click on the control and uncheck the enabled checkbox
Re: ListView - Listitem shouldn't be changeable by user
Set LabelEdit to 1-lvwManual at design time, or by code:
ListView1.LabelEdit = lvwManual
Re: ListView - Listitem shouldn't be changeable by user
Thank you anhn, it works :)