I have a DataTable bound to a BindingSource to a DataGridView.. I have no problems formatting the entire DGV, but I can't format (change cell style) individual rows,columns or cells..
The blue line works, the red line does not.. they both compile, only one is effective though..
This code is barely removed from sample code, I have no idea what's going on.
Thanks in advance,
DataTable workTable = new DataTable("Jan06");
BindingSource bs = new BindingSource();
for (int i = 0; i < 12; i++)
DataRow workRow = workTable.NewRow();
workRow = 10 + i;
bs.DataSource = workTable;
dataGridView1.DataSource = bs;
dataGridView1.DefaultCellStyle.ForeColor = Color.Blue;
dataGridView1.Columns["Call"].DefaultCellStyle.ForeColor = Color.Red;