0

I have a listview in wpf and i am swapping two items index..

the swapping must be visible to the user.

i tried giving thread delay..

it didnt work

How to do that..

curiosity
  • 1,207
  • 5
  • 23
  • 34

2 Answers2

0

I am not sure whether it will work for your problem or not.

I think you need some kind of animation there. If it is web project, you can use jQuery animation to do that.

MRG
  • 3,219
  • 1
  • 26
  • 35
0

If I was going to do this I would delete the list view and lock it up where you can't use it again. Then code whatever your list view was outputting in C# using whatever you use to query your database(I think LINQ to SQL is the most robust solution right now) and then use a string builder to construct the html. This way you can assign a id to each div and append an incrementing number to the end of the id. Finally you could write your javascript and use the id's. Here is a link that shows how to build a gridview without using a gridview control.

See the first answer to the question in this link: How to show pop up menu from database in gridview on each gridview row items?

Community
  • 1
  • 1
The Muffin Man
  • 19,585
  • 30
  • 119
  • 191