c# - Add item to the listview in a specific index -
After you sort ListView items, I would like to add a list view object in the first row of listview control:
(Sender as LISTuView) Cert (); Forex (lstvTotalGroups.Items in Listwuaitim lstvgeneral) {if (lstvgeneral.Tag! = Null) {if (lstvgeneral.Tag.ToString () == "normal") {lstvTotalGroups.Items.Remove (lstvgeneral); LstvTotalGroups.Items.Instert (0, lstvgeneral); }}} However, the list line has been added to the row instead of in the first line. The
If you sort the list view, new items appear in the sort order, and not In the specified position.
If ListView.Sorting property is set to a value other than the SortOrder.None or as if set ListViewItemSorter property, items are added when the item is automatically sorted The label changes text then the item is not automatically sorted.
Comments
Post a Comment