1.11M Members

how to disable editing in listview table

 
0
 

Hi experts, I have listview table but when I click or double click the row the data could be changed or edited? How could I disable it but still able to select every row? Many thanks!

Kimangel

 
0
 

the purpose here is that changes could only be done in textboxes not directly on listview table.

 
1
 

Hi,

Change the property Setting for ListView:
LabelEdit = 1 -lvwManual

Regards
Veena

 
0
 

Perhaps the behaviour is different in VB6 and earlier but in VB 2010 the items in the ListView are not editable. Are you sure you mean ListView and not some other control?

 
0
 

If there is no code under the listview double click event, it will not do anything.

If you want it to NOT do anything, remove the code from the double click event...

On single click, remove the code that lets the user edit teh data... It seems that you have some copied code that you do not understand fully.

 
0
 

If there is no code under the listview double click event, it will not do anything.

This might be easier to determine if the OP had actually provided code.

 
0
 

indeed. :)

 
1
 

Seriously? I get a downvote for suggesting that some code might be of help in solving the problem? And for asking for a clarification on a control type? Someone has a pretty thin skin.

 
0
 

I couldn't see the downvote. No comments added? I hate it when we help and then get downvoted because people is entirely ungratefull for teh help!!!

Gave you some on my side, should be worth more than the downvote!! :)

Question Answered as of 1 Year Ago by AndreRet, Reverend Jim and QVeen72
 
0
 

Thank you experts, especially to Veena. it works.

You
This question has already been solved: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article