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

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -