I have an ultragrid with an unbound Boolean column that i had named it "Select".
user can select and deselect a row by checked or unchecked the "Select" cell of that row.
but if the number of the grid rows are very much, its difficult for the user to find all of selected rows.
So i want to send the selected rows to the top of the grid just after the user select them. but i could not found any property that can help me?
Hello mphoenix,
A possible approach to achieve this might be by using the following code sample:
private void ultraGrid1_AfterSelectChange(object sender, AfterSelectChangeEventArgs e) { if (e.Type.Name == "UltraGridRow") { ultraGrid1.Rows.Move(ultraGrid1.Selected.Rows[ultraGrid1.Selected.Rows.Count - 1], 0); } }
Please feel free to let me know if I misunderstood you or if you have any other questions.
Thanx a lot Boris, It was my answer.