hi,
i am using a ultrawingrid which is having 2 band.
in child band im having 4 rows
im using a user control for up and down buttons for moving a row up or down
im able to move the parent band rows but not able to move the child band rows.
could anyone help me on this topic.
SelectedRowsCollection
selectedRows = Grid.Selected.Rows;
lastGridIndex = (Grid.ActiveRow.ParentCollection.Count) -1;
))
{
Grid.ActiveCell.Row.Selected =
;
}
(selectedRows.Count > 0)
priorIndex = -1;
.MoveRowUp)
selectedRows)
(dr.Index == 0)
locked =
(locked && (dr.Index > priorIndex + 1))
(!locked)
Grid.Rows.Move(dr, dr.Index + 1,
);
priorIndex = dr.Index;
Grid.ActiveRowScrollRegion.ScrollRowIntoView(selectedRows[0]);
else
currentRow = selectedRows.Count - 1;
(currentRow >= 0)
dr = selectedRows[currentRow];
(dr.Index == lastGridIndex)
(locked && (dr.Index < priorIndex - 1))
Grid.Rows.Move(dr, dr.ListIndex + 1,
--
This is code i'm using to move the rows up and down for parents band and its working fine but its not working for the child bands i dont know why ?
Hello,
Could you please if possible attach a small sample project with your scenario and the exact requirements, I will be happy to assist you further on that matter.