0

how to add multiple image in listview columns like

 ListViewItem.ListViewSubItem[] subItems;
            ListViewItem item = null;
            item = new ListViewItem(imageList1.Images[0].ToString(), _GroupName);
            subItems = new ListViewItem.ListViewSubItem[] 
                               { new ListViewItem.ListViewSubItem(item,imageList1.Images[1].ToString()),
                                new ListViewItem.ListViewSubItem(item,imageList1.Images[2].ToString()),
                                new ListViewItem.ListViewSubItem(item,_Row["Description"].ToString()),
                                new ListViewItem.ListViewSubItem(item,imageList1.Images[3].ToString())};
 item.SubItems.AddRange(subItems);
                ListView.Items.Add(item);

how add to do that. dynamically.

1
Contributor
1
Reply
3
Views
4 Years
Discussion Span
Last Post by pritesh2010
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.