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
UltraGrid Header -- Text Rotation
posted

Dear all,

Is it possible to have text rotation at 45 degrees of ultragrid header?? If yest, how to do in coding??

  • 469350
    Offline posted

    Hi,

    Yes, it is possible. :)


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

                TextOrientationInfo textOrientationInfo = new TextOrientationInfo(45, TextFlowDirection.Horizontal);
                ov.ColumnHeaderTextOrientation = textOrientationInfo;
            }