Click here to Skip to main content
15,895,656 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to change background color for footer of a single cell in grid view. I don't need background color for entire row.
Posted

You can do this by creating a CSS for the footer as described in this very useful article Tutorial 15: Displaying Summary Information in the GridView's Footer[^].
 
Share this answer
 
you can do like this:

here cells[0] indicates zeroth cell ,you can give your cell index
gridview1.FooterRow.Cells[0].BackColor = System.Drawing.Color.Red;
 
Share this answer
 
add css like this

HTML
.foot
{
       background-color:marron;
}


add this css into grid view item-footer-class=foot
 
Share this answer
 
v2
Hi
Add the below mentioned tag..
HTML
<footerstyle backcolor="Red" />
 
Share this answer
 
v3

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900