Skip to content

How to set color in gridview cell depending on conditions?

ranjan sahoo

Asked Nov 14, 2012, 7:53 AM EST1 answer
Share
LinkedInX
how to set color in gridview cell if database data are present then this cell color green,if data are not present then this color red ,and holiday colum are black .how to set in c# and asp.net with example/

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Suthish Nair
    0
    On RowDataBound, read each row cell value and then you can apply styles for rows..
    0