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
310
Change the visible position of ROWs of ultragrid programmatically
posted

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?

Parents
  • 71886
    Verified Answer
    Offline posted

    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.

Reply Children
No Data