GridView的FooterStyle不起作用

来源:百度知道 编辑:UC知道 时间:2024/05/17 04:35:08
<FooterStyle Height="20px" HorizontalAlign="Center" BackColor="Yellow" ForeColor="Red" />
<RowStyle Height="25px" />
<HeaderStyle Height="20px" HorizontalAlign="Center" BackColor="#FFFF80" ForeColor="Blue" />
------
HeaderStyle起作用,可以显示样式,可FooterStyle不显示,为什么?

//因为你没有设置showfooter属性,格式如下
<asp:gridview id="CustomersGridView" 。。。
showfooter="true"
runat="server">

<headerstyle backcolor="LightCyan"
forecolor="MediumBlue"/>

<footerstyle backcolor="LightCyan"
forecolor="MediumBlue"/>

</asp:gridview>