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.
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.
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 ?
I am not able to run the code provided in your last post so could you please wrap up your scenario in a zip file and if possible attach to your next post, I will be happy to take a look at it.
I am checking about the progress of this issue. Please let me know If you need any further assistance on this.
hey,
im sorry for for such a late reply,
i have done the issue it can be done iof we take up the individual bands collection.
code written to solve this issues is
Grid.ActiveRow.ParentCollection.move
Thanks
Vamsi Manohar Katika
Thank you for your feedback, I really appreaciate it since the other community members could benefit from this thread as well.
Please do not hesitate to ask if something comes up.
Sure ..
and thanks for the great support.!