Can anyone tell me how I can select all items in ultralistview.
----------------------
I have an ultralistview control in Form added at design time
lstView.Items.Add("string1");
lstView.Items.Add("string2");
lstView.Items.Add("string3");
This adds 3 itmes to ultralistview.
When the user selects the option "Select all items" in the Form , then all three items should be selected [ highlighted ]
private void button1_Click(object sender, EventArgs e){ List<UltraListViewItem> items = new List<UltraListViewItem>(this.listView1.Items.Count); foreach( UltraListViewItem item in this.listView1.Items ) { items.Add( item ); }
this.listView1.SelectedItems.AddRange( items.ToArray() );}