Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
210
Drag and drop in single wingrid
posted
Hi
I followed the code from article KB10086 about drop and drag.
My problem is, that it only works on top level band.

When I try drop and drag rows in the same childband ,
nothing happens, Is it a bug, or is it just not posible?

I am using version 2007 vol3

Regards
JensB
Parents
  • 469350
    Offline posted

    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. 

Reply Children