DataGridViewCellStyle style = new DataGridViewCellStyle(); style.BackColor = Color.LightBlue; style.Font = new Font("Arial", 12, FontStyle.Bold);
dataGridView1.Rows[0].Cells[0].Style = style;This code applies the style created in the previous example to the first cell in the first row of the DataGridView control named dataGridView1. Package Library: This class is included in the .NET Framework Class Library for Windows Forms.