Click here to Skip to main content
15,918,742 members
Articles / Desktop Programming / Windows Forms

Change individual DataGridView row colors based on column value

Rate me:
Please Sign up or sign in to vote.
1.80/5 (3 votes)
4 Aug 2011CPOL 43.1K   4  
If cell color is depend on criteriaif (ca.con.State == ConnectionState.Closed) { ca.con.Open(); } string qry = "select * From productmaster "; SqlDataAdapter da = new SqlDataAdapter(qry, ca.con); DataSet ds1 =...

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Comments and Discussions