|
|
|
|
ListviewX, DevComponents.
The ListviewX control replaces the windows forms listview control. The control supports
items and groups.
Namespace: DevComponents.DotNetBar.Controls
Assembly: DevComponents.DotNetBar2.dll
Using: DevComponents.DotNetBar.Controls;
Declaring: DevComponents.DotNetBar.Controls.ListViewEx();
Creating the ListViewEx control.
DevComponents.DotNetBar.Controls.ListViewEx listview = new DevComponents.DotNetBar.Controls.ListViewEx();
listview.Location = new Point(100, 100);
listview.Size = new Size(100, 300);
listview.View = View.List;
this.Controls.Add(listview);
Assigning an Imagelist to the ListViewEx control.
listview.SmallImageList = this.imageList1;
Adding items to the ListViewEx control.
System.Windows.Forms.ListViewItem li1 = new ListViewItem();
li1.Text = "Acer.";
listview.Items.Add(li1);
System.Windows.Forms.ListViewItem li2 = new ListViewItem();
li2.Text = "DELL.";
listview.Items.Add(li2);
System.Windows.Forms.ListViewItem li3 = new ListViewItem();
li3.Text = "HP.";
listview.Items.Add(li3);
Assigning an image to a listview item.
li1.ImageIndex = 1;
Screenshots - ListviewX, DevComponents.
|
|
|
|
|