|
-
Apr 15th, 2009, 06:20 AM
#1
Thread Starter
New Member
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.
-
Apr 15th, 2009, 06:23 AM
#2
Re: ListView - Listitem shouldn't be changeable by user
The easiest way would be to disable it.
-
Apr 15th, 2009, 06:32 AM
#3
Thread Starter
New Member
Re: ListView - Listitem shouldn't be changeable by user
Excuse me for this stupid question, but... HOW?
-
Apr 15th, 2009, 06:35 AM
#4
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
-
Apr 15th, 2009, 07:13 AM
#5
Re: ListView - Listitem shouldn't be changeable by user
Set LabelEdit to 1-lvwManual at design time, or by code:
ListView1.LabelEdit = lvwManual
-
Apr 15th, 2009, 07:32 AM
#6
Thread Starter
New Member
Re: ListView - Listitem shouldn't be changeable by user
Thank you anhn, it works
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|