Suggest I have a listview control containing three items, A B and C. I would like to move item A ope position down using Move Up and Move Down buttons...
Can someone please tell me how to move a listitem a position down (or up)?
Printable View
Suggest I have a listview control containing three items, A B and C. I would like to move item A ope position down using Move Up and Move Down buttons...
Can someone please tell me how to move a listitem a position down (or up)?
the way that i could think about is , in the click handler >>
*get index of selected item
*delete selected item
*add new listviewitem at wanted index ( +1 or -1 of the selected index)
1st take a reference to the item, then remove it from the items collection and then add it at the place you want