VB.NET - Font change for particular cell in datagridview

Asked By smile on 20-Mar-13 03:06 AM
After attaching the datasource through code  i am trying to change font for a particular cell  for datagridview but it doesn't work.
Tom Wilson replied to smile on 20-Mar-13 11:31 AM
This code will bold the font in the cell at row 2, column 2:

Dim originalfont As Font = DataGridView1.Font

DataGridView1(2, 2).Style.Font =

New Font(originalfont, originalfont.Style Or FontStyle.Bold)