Hello All:
Im using a dataGridView in unbound way, and would like to set the foreColor of the cell i just added based on info i fetch from my db table, here is my current code :-
if (cheque == true)
{
dgv.Rows.Add(date.ToString("dd ddd"), venue, fee,"chk");
}
else
{
dgv.Rows.Add(date.ToString("dd ddd"), venue, fee, "cash");
}
This routine sits right in the middle of an sqlReader looping through a Diary table.
There are 4 columns and id like to get rid of the 4th (chk/cash)and just set the 3rd 'fee' cell's foreColor to either red or green depending on weather its cash or cheque.
Can I set the foreColor of a cell I just added?
Any help appreciated
Tino