haroldjclements Posted February 24, 2005 Posted February 24, 2005 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 Quote
stustarz Posted February 24, 2005 Posted February 24, 2005 Me.ListView1.Items(0).SubItems(0).Text = "" Where : Items(0) is the index of the item in the listview Subitems(0) is the index of the subitem in the item Quote Visit: VBSourceSeek - The VB.NET sourcecode library "A mere friend will agree with you, but a real friend will argue."
haroldjclements Posted February 25, 2005 Author Posted February 25, 2005 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 Quote
Wile Posted February 25, 2005 Posted February 25, 2005 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 Quote Nothing is as illusive as 'the last bug'.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.