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
4695
Wrap header text
posted

Dear all,

How auto wrap header text and row cell text in the ultragrid??

  • 469350
    Offline posted


            private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
            {
                UltraGridLayout layout = e.Layout;
                UltraGridOverride ov = layout.Override;

                ov.WrapHeaderText = DefaultableBoolean.True;
                ov.CellMultiLine = DefaultableBoolean.True;
            }

     

    The CellMultiline property is also available on the column in case you don't want it on every column.