Skip to main content

How to set the grid font?

Comments

1 comment

  • Dapfor Team

    Hello Cory,

    You can set up the font per hierarchical level:

    grid.Headers[0].Appearance.RowFont = new Font("Areal", 12);

     or individually for rows in the drawing routine:

     grid.PaintRow += delegate(object sender, PaintRowEventArgs e)
    {
    if(your criteria)
        {
            e.Font = new Font("Areal", 12);
        }
    };

     or individually for cells:

     grid.PaintCell += delegate(object sender, PaintCellEventArgs e)
    {
        if(your criteria)
        {
            e.Font = new Font("Areal", 12);
        }
    };

    Best regards,

    The Dapfor Team

    0

Please sign in to leave a comment.

Powered by Zendesk