changing the back colour of the datagridview if the column contains something
Posted on 2009-04-17
i have a datagridview with 7 columns...and the 7th column is "approved" , if the cell approved is not empty, then i wanted to change the back colour of the particular row....how can i do this...
for now, i am using this code to alternate colours....
.RowsDefaultCellStyle.BackColor = Color.Bisque
.AlternatingRowsDefaultCellStyle.BackColor = Color.Beige
is there some property like
if datagridview1.columns(6).text is not nothing then
datagridview1.....backcolor = color.red