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
645
How to set the Grid Header orientation?
posted

Hey all,

how could I set the Header orientation on Grid, e.g. Horizental or Vertical?

Thanks for your help!

Best regards

Parents
No Data
Reply
  • 69832
    Suggested Answer
    Offline posted

    The Override class exposes a 'ColumnHeaderTextOrientation' property, so you can set this on the Layout or the Band. You can also set it for an individual column using UltraGridColumn.Header.TextOrientation property. The following code sample demonstrates how to rotate the text 90 degress counterclockwise for all column headers:

    private void ultraGrid_InitializeLayout(object sender, InitializeLayoutEventArgs e)
    {
        TextOrientationInfo info = new TextOrientationInfo(90, TextFlowDirection.Horizontal);
        e.Layout.Override.ColumnHeaderTextOrientation = info;
    }

Children