Is there a way to show the subitems of an item in a listview below it? I don't want to separate the item in first column and subsequent subitems in subsequent columns, I want it all in a single column and if there were to be more items I want every item separated by a line. Something like this but in C#. Maybe if it is not possible could it be to make every item like an expandable list? Initializes a new instance of the ListViewItem. ListViewSubItem class with. (the user can edit ListViewItem objects if the. ( Shared in Visual Basic). My code for now is: lstEvents.View = View.Details; lstEvents.ForeColor = Color.Black; lstEvents.Columns.Add('Events'); ListViewItem item = new ListViewItem('Event name'); item.SubItems.Add('); item.SubItems.Add('$20000'); item.SubItems.Add('this would be the event description'); im using windows forms. No, not using the control as provided. Only the main column provides in-place editing. You can, however, duplicate this functionality using another text box you position over the subitems on clicking. Give this a try --- toss all this into a form's genearal declarations section after you've added only a listview and textbox (both with the default names). Thanks Randy Greets John 'Randy Birch' schreef in bericht news:u_*******************@news01.bloor.is.net.cab le.rogers.com. No, not using the control as provided. Only the main column provides in-place editing. You can, however, duplicate this functionality using another text box you position over the subitems on clicking. Give this a try --- toss all this into a form's genearal declarations section after you've added only a listview and textbox (both with the default names).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2019
Categories |