Link to home
Start Free TrialLog in
Avatar of T Hoecherl
T HoecherlFlag for United States of America

asked on

vb.net datagridview specifying font color in a specific cell

I know how to change the font color for a whole row.  This works for me to change the entire row:

dgvProdBatch.Rows(48)DefaultCellStyle.ForeColor = Color.Red

But I want to change the font color in only 2 cells on the row.  How can I do that?

T
Avatar of Scott McDaniel (EE MVE )
Scott McDaniel (EE MVE )
Flag of United States of America image

Change it for the Column:

dgvProdBatch.Columns(YourColumn).DefaultCellStyle.ForeColor = Color.Red
Avatar of T Hoecherl

ASKER

I don't want the whole column red - only the cell on one row in the column.  Is there a way to specify row and column in the same statement?
ASKER CERTIFIED SOLUTION
Avatar of Scott McDaniel (EE MVE )
Scott McDaniel (EE MVE )
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you.