How Do I Change the BackColor for DataGridView Cells?

T

TC

I can't figure out how to change the background color for cells in a
DataGridView. I've tried the obvious, but it doesn't seem to work:

MyDataGridView.Item(1, 1).Style.BackColor = Drawing.Color.Red

Any suggestions?


-TC
 

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

Top