Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Does anyone know how you can edit the subitems of the listView in the same way as you can the items text labels (this first item in the row)?

 

Setting the LabelEdit property to true only effect the main item labels of the row not any of the subitems.

 

Thanking you in advance,

Harold Clements

Posted

Thanks very much, Stustarz, but that�s not quite what I am trying to get at (or I have completely misunderstood). When you use the LabelEdit property you can double click the desired line in the listView and it will allow you to edit the label row data but not any of its subitems.

 

I was wondering whether there is a way that you can edit these subitems without having to create a new form and getting the user to input the changes there.

 

Thanks again,

Harold Clements

Posted

I dont believe it is possible to let other items than the first be directly edited in the listview.

 

However it is possible to simulate this behavior using a textbox (or combobox or any other control) and show it when the user clicks the subitem for the 2nd time.

Take a look at this project, might be what you are looking for.

http://www.codeproject.com/cs/miscctrl/ListViewCellEditors.asp

Nothing is as illusive as 'the last bug'.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...