Jensburup said:I changed the code to :ultragrid1.Rows.Move(ultragrid1.Selected.Rows(0), dropIndex)
Um, I assume that this is just a typo? Because that's exactly the same as the original line.
My point is that this line of code is using ultraGrid1.Rows which is the root-level rows collection. If you try to drag a row in a different collection, then this will not work. The Move method moves a row within the same rows collection. So if you drag a child row and then call the move method on a completely different rows collection and try to pass in a row that isn't in that collection, it's not going to work - it doesn't even make sense.
So you need to make sure you use the Move method of the rows collection in which the row you are actually moving is contained. In this case, you actually have 2 rows by which you can get the collection. The ugrOver row is the row you are dropping onto. The Selected.Rows are the rows being dragged. So your code probably needs to check to make sure these rows both have the same parent rows collection. Then you can call the Move method on that collection.
If that's still not working, then you should probably Submit an incident to Infragistics Developer Support
The Move method is only going to work when moving a row within the Rows collection it is already in. You can't move a row from one rows collection to another without modifying the data.
The sample in this KB article is doing this:
ultraGrid1.Rows.Move(aRow, dropIndex);
It's assuming that the row is in the grid's main rows collection. So if you want to move a row within a child collection, what you could do it get the first selected row (grid.Selected.Rows[0]) or maybe the ugrOver row and use it's ParentRowCollection instead of using ultraGrid1.Rows.