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
165
Setting e.Row.Height in InitializeRow does not work
posted

I'd like to change the row height of certain rows in my grid.

In InitializeRow, setting e.Row.Height does not work. In my case, it is always 20, even after assigning it a different value.

 

How can I make some rows have different height?

 

 

Parents
No Data
Reply
  • 469350
    Suggested Answer
    Offline posted

    By default, all rows in the grid must be the same height. To change this, you need to set the RowSizing property to Free (or AutoFree).


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

     

     

Children