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
620
Display always as the last row.
posted

How to make a row display always as the last row based on its cell value?

I have sorted the rows based on some column value. But there is a row which I need to display always as the last row irrespective of the sorting order. How can I do this?

 

Thanks.

Parents
  • 469350
    Offline posted

    Do you want the row at the bottom of the list? Or the bottom of the grid?

    If you want to have a fixed row at the bottom of the grid, you would do something like this:


            private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
            {
                e.Layout.Override.FixedRowStyle = FixedRowStyle.Bottom;
            }

    Then you just set the Fixed property on the row you want. The InitializeRow event would be a good place to set this.

    If you just want the row to always be last in the sort order, then you would have to use a custom SortComparer on the column.

Reply Children