I have a sharepoint gridview all columns are populate correctly after binding it to datatable. But i want to change color of my column cell in Sharepoint Gridview on certain condition ?
If(A>17)
{ ......Here my gridview column cell color becomes RED. }
Please revert for Help!!!!
Sukesh MarlaPosted Sep 14, 2012, 1:44 PM
Us the row data bound event of grid as follow
row.Cells[i].Style.BackColor = Color.Green;
Check this is correct answer if it helped.
Satyapriya NayakPosted Sep 14, 2012, 12:25 PM
Please refer the below links
http://www.daniweb.com/web-development/aspnet/threads/113079/gridview-change-color-to-column-values#
Thanks