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
200
UltraGrid - Selectively setting Row Height
posted

Hi,

I need to specify different height to the grid rows dynamically. Presenlty when I am setting row height (e.Row.ChildBands[0].Band.Layout.Override.DefaultRowHeight), it is applied to all rows within that band.

Is there any way to set rows to different heights?

Base Requirement: I need to develop a hirarchical grid..where when a row is expanded, a child row shows a content editor control (basically a richtext box). As the content grows in the editor, I need to expand the editor control (to avoid scrolling) and so as the grid row.

So basically I need to set the row height based on the content size.

Regads,

Balraj

Parents
  • 53790
    posted

    Hello Balraj,

    Maybe one possible way to achieve desired behavior could be if you set property:

    ultraGrid1.DisplayLayout.Override.RowSizing = Infragistics.Win.UltraWinGrid.RowSizing.Free;

    and than apply different height for the rows. For example:

    ultraGrid1.DisplayLayout.Rows[2].Height = 50;

    ultraGrid1.DisplayLayout.Rows[3].Height = 20;

    Let me know if you have any questions

     

Reply Children