Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

coloring row of datagridview with datasource

$
0
0

hi to all,

i am using datasource to fill datagridview data

mygridview.DataSource = myDatatable;

one of the columns named "markcolor" has values 0 or 1.

i want when the value is 1 the row color to be red else the default color (white)

how can i do this?

thanks in advance


Viewing all articles
Browse latest Browse all 2535

Trending Articles



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