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
765
two line column header caption
posted

Hello,
I nedd a two line column header caption (WinGrid).

string text = "speed [kmh/mph]";
 
The caption from the column header should look:

    speed
    [kmh/mph]

 
column.Header.Caption = column.Header.Caption.Replace("x", "speed [kmh/mph");

What I must change?


Alexander

Parents
No Data
Reply
  • 20872
    Verified Answer
    Offline posted

    Hello Alexander,

    All you have to do is setting the following:

    column.Header.Caption = "Speed" + Environment.NewLine + "[kmh/mph]";

    Please let me know if this works for you.

     

Children