Design as follows in the data grid view;
Date Session VRV CK CNN CKK MS T MS RK MK
8/1/2012 1 COURSENAME
8/1/2012 2
8/1/2012 3
8/1/2012 4
in the above i want to give the FORECOLOR for DATE and SESSION in the data grid view.
Loading
Satyapriya NayakPosted Jan 8, 2013, 11:59 PM
{
dataGridView1.Rows[i].Cells[0].Style.ForeColor = Color.Red;
dataGridView1.Rows[i].Cells[1].Style.ForeColor = Color.Red;
}
If this post helps you mark it as answer
Thanks
Satyapriya NayakPosted Jan 8, 2013, 10:55 AM
dataGridView1.Columns[1].HeaderCell.Style.ForeColor = Color.Red;
dataGridView1.EnableHeadersVisualStyles = false;
chellappan pandiarajanPosted Jan 8, 2013, 10:43 AM
For Particular coloumn : GridName.Columns[1].DefaultCellStyle.ForeColor = Color.Red;
For Particular Row : GridName.Rows[1].DefaultCellStyle.ForeColor = Color.Red;
Here [1] denotes the Index
Thanks,
Pandian
Riddhi ValechaPosted Jan 8, 2013, 8:19 AM
Try the following -