I'm implementing drag and drop reordering of rows in my UltraGrid by changing the order of the items in my grids datasource, which is a BindingList<T>.
My code correctly manages the order of items in the BindingList, but the grid does not reflect that order.
Any ideas as to what I'm doing wrong?
Thanks,
jb
What's the process that you're using to handle the drag/drop reordering of the rows? Are you using a process similar to the following article?
HOWTO:How to drag and drop rows in a single WinGrid
I did a test of manually reordering the BindingList that a grid is bound to and the grid was correctly picking up these notifications, so if you could post a small sample project, or at least a basic description, it would help me track down where your problem is.
-Matt
Actually, I didn't implement it according to that article, which moves actual UltraGridRow instances. I implemented it by reordering the model instances in my BindingList that the grid is bound to.
Turns out I needed to call UltraGrid.DataBind() to get the grid to correctly realize that I reordered the BindingList.
Thanks for replying though.