how to disable editing in listview table
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
kimangel
Junior Poster in Training
73 posts since Jan 2013
Reputation Points: 13
Solved Threads: 0
Skill Endorsements: 0
the purpose here is that changes could only be done in textboxes not directly on listview table.
kimangel
Junior Poster in Training
73 posts since Jan 2013
Reputation Points: 13
Solved Threads: 0
Skill Endorsements: 0
Hi,
Change the property Setting for ListView:
LabelEdit = 1 -lvwManual
Regards
Veena
QVeen72
Veteran Poster
1,017 posts since Nov 2006
Reputation Points: 118
Solved Threads: 164
Skill Endorsements: 5
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?
Reverend Jim
Carpe per diem
3,627 posts since Aug 2010
Reputation Points: 563
Solved Threads: 452
Skill Endorsements: 32
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.
AndreRet
Industrious Poster
4,706 posts since Jan 2008
Reputation Points: 391
Solved Threads: 481
Skill Endorsements: 20
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.
Reverend Jim
Carpe per diem
3,627 posts since Aug 2010
Reputation Points: 563
Solved Threads: 452
Skill Endorsements: 32
AndreRet
Industrious Poster
4,706 posts since Jan 2008
Reputation Points: 391
Solved Threads: 481
Skill Endorsements: 20
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.
Reverend Jim
Carpe per diem
3,627 posts since Aug 2010
Reputation Points: 563
Solved Threads: 452
Skill Endorsements: 32
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!! :)
AndreRet
Industrious Poster
4,706 posts since Jan 2008
Reputation Points: 391
Solved Threads: 481
Skill Endorsements: 20
Question Answered as of 2 Months Ago by
AndreRet,
Reverend Jim
and
QVeen72 Thank you experts, especially to Veena. it works.
kimangel
Junior Poster in Training
73 posts since Jan 2013
Reputation Points: 13
Solved Threads: 0
Skill Endorsements: 0