coloring row of datagridview with datasource

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
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

View the full article
 
Back
Top