I am trying to move items up and down in generic list but not getting desired results If I have 5 items and and one their be 6 with order id's of 1 to 6 then when i move an item up one position via button click say item 6 it would become 5 and what was at 5 would become 6.
Can Someone help me out here please on the logic below?
ObservableCollection<CustomColumnsModel> columnsList = this.WizardData.ConcreteCustomColumnsProxy;
List<CustomColumnsModel> forUpdate = new List<CustomColumnsModel>();
int offset = 0;
foreach (CustomColumnsModel item inthis.listView1.Items)
item.CustomColumnsOrder += offset;
Optional. A signed integer that indicates the total length of the field into which the argument is inserted and whether it is right-aligned (a positive integer) or left-aligned (a negative integer). If you omit alignment, the string representation of the corresponding argument is inserted in a field with no leading or trailing spaces.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer