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
40
Change font in Ultragrid object
posted

Hi, I wonder if you can help us.

We are trying to change the font for the header in an ultragrid, however we don't know the appearance that we have to change for the header that is mark in a red circle on the following image.

I'm writing from Lima, Peru, that's why the image is on Spanish.

Thanks

Parents
No Data
Reply
  • 7535
    Verified Answer
    Offline posted

    Hello,

    Thank you for your post . You can change the font of the grid column header using header appearance.

    Something like this would change the font for column 0:

    FontData fd = this.ultraGrid1.DisplayLayout.Bands[0].Columns[0].Header.Appearance.FontData;

    fd.Bold = DefaultableBoolean.True;
    fd.Italic = DefaultableBoolean.True;
    fd.Name = "Times New Roman";
    fd.Underline = DefaultableBoolean.True;

Children