Datagridview cell color doesn't change?

  • Thread starter Thread starter Brett Romero
  • Start date Start date
B

Brett Romero

I'm using this to change the color of a row:

dgAppVersionInfo.DataSource = dt;
foreach( int i in gridRowColorChange )
dgAppVersionInfo.Rows[ i ].DefaultCellStyle.ForeColor = Color.Green;

I have only one row in the datatable. gridRowColorChange is a
List<int> with only "0". In the watches, I see the ForeColor for the
above row is set. However, I don't see this come through visually in
the grid. Samething if I try to set BackColor. No affect.

Any suggestions?

Thanks,
Brett
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top