Gridview Footer is not getting displayed!!!URGENT!! [Resolved]

Posted by .Netlearner under ASP.NET on 6/15/2012 | Points: 10 | Views : 1218 | Status : [Member] | Replies : 2
Hello All,
Am having the following gridview
<asp:GridView ID="gvmycart" runat="server" AutoGenerateColumns="False" OnRowDataBound="gvmycart_RowDataBound"  OnRowCommand="gvmycart_OnRowCommand" OnSelectedIndexChanged="gvmycart_OnSelectedIndexChanged"
CellPadding="3" CssClass="GridViewStyle" Width="100%" Height="130px">
<Columns>
<asp:BoundField DataField="ProductID" HeaderText="ProductID" SortExpression="ProductID" />
<asp:BoundField DataField="ProductName" HeaderText="Product Name" SortExpression="ProductName" />
<asp:TemplateField HeaderText="Delete">
<ItemTemplate>
<asp:CheckBox ID="chkdelete" runat="server" />
</ItemTemplate>
<FooterTemplate>
<asp:ImageButton ID="btndelete" runat="server" ImageUrl="~\images\delete1.png" CommandName="delete" CausesValidation="False" />
</FooterTemplate>
</asp:TemplateField>
</Columns>
<RowStyle CssClass="rowdata" />
<PagerStyle CssClass="PagerStyle" />
<SelectedRowStyle CssClass="SelectedRowStyle" />
<HeaderStyle CssClass="gridheading" BackColor="#004d6a" ForeColor="white" />
<EditRowStyle CssClass="EditRowStyle" />
<AlternatingRowStyle CssClass="rowdata1" BackColor="#F5F5F5" />
<FooterStyle Backcolor="#004d6a" ForeColor="white" />
</asp:GridView>

While executing this code the Footeris not getting displayed. I have button in the footr with which i have to perform the delete operation.Pls Guide me




Responses

Posted by: Mauryavijai on: 6/15/2012 [Member] Starter | Points: 50

Up
0
Down

Resolved
Check that you have set the gridview property ShowFooter to true.

Thanks
Vijai Maurya

Vijai Prakash Maurya

.Netlearner, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: .Netlearner on: 6/18/2012 [Member] Starter | Points: 25

Up
0
Down
thank u Its solved

.Netlearner, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response