Home - Forums-.NET - FlyGrid.Net (Windows Forms) - How do I change font on rows

FlyGrid.Net (Windows Forms)

.NET Datagrid - Fast, highly customizable, industry standards .NET data grid control for WinForms

This forum related to following products: FlyGrid.Net

How do I change font on rows
Link Posted: 07-Apr-2006 00:17
Hello!

Here I change font on existing column in the flygrid

foreach (Column col in flgSetupTable.Columns.Items)
{
    col.HeaderFont = new Font(\"Arial\",9,FontStyle.Bold);
}

If I have a flygrid and I want to change font on all the rows within the first column. How is that done?

Many thanks!!

//Tony
Link Posted: 07-Apr-2006 01:55
Use Column.Font property to change font of cells:
[C#]
private void ChangeFontForCells(FlyGrid flyGrid, int colIndex)
{
  flyGrid.Columns.Items[colIndex].Font = new Font(flyGrid.Font, FontStyle.Italic);
}