ListView'da 5 tane itemim var. Ben 4. itemi en başa koymak istiyorum.
ListView1.Items[3].Index = 0;
gibi bir şeyler denedim fakat başarılı olamadım. İnternette aradığımda da pek bir şey bulamadım. Yardımcı olursanız sevinirim.
Silip yeniden eklemen gerekiyor listView a
ListViewItem item = new ListViewItem("blabla") listView1.Items.RemoveAt(Index); listView1.Items.Insert(index, item); //Insert(Int32, ListViewItem) Inserts an existing ListViewItem into the collection at the specified index.
quote:
Orijinalden alıntı: J-Smoove
Silip yeniden eklemen gerekiyor listView a
ListViewItem item = new ListViewItem("blabla") listView1.Items.RemoveAt(Index); listView1.Items.Insert(index, item); //Insert(Int32, ListViewItem) Inserts an existing ListViewItem into the collection at the specified index.