Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27404

VS 2010 DataGridView - Highlight Cell

$
0
0
I have a datagridview in my project which is bound to a dataset.

The grid populates fine, but I'm looking to do something a bit more.

One of the columns is called "Status" and right now it returns the ID from the database in this column (e.g. "13", "14" etc). I'd like to substitute this value with it's associated color so if it's "13" set the cell background to green, if it's 14 set it to yellow and so on.

Just not sure a) where to put this code and b) how to do it.

Thanks

Viewing all articles
Browse latest Browse all 27404

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>