How to set the grid font?
I'm attempting to change the font for the data in the grid using the Font property for the grid, but this does not adjust the font settings for the data in the grid. What property am I supposed to use to change the font?
0
-
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.
Comments
1 comment