문제

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?

도움이 되었습니까?

해결책

I have found my solution myself:

private void ultraGrid1_AfterCellUpdate(object sender, CellEventArgs e)  
    {  
        if (e.Cell.Column.Key == "Select" && Convert.ToBoolean(e.Cell.Value))  
            {  
                ultraGrid1.Rows.Move(e.Cell.Row, newPosition);  
            }  
        } 
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top