What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 7082 |  Welcome, Guest!   Register  Login
 Home > Forums > ASP.NET > Gridview Footer is not getting displayed!!!URGENT!! ...
.Netlearner

Gridview Footer is not getting displayed!!!URGENT!!

Replies: 2 | Posted by: .Netlearner on 6/15/2012 | Category: ASP.NET Forums | Views: 388 | Status: [Member] | Points: 10  


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


Reply | Reply with attachment | Alert Moderator

 Responses below this adGet hundreds of .NET Tips and Tricks videos

 Replies

Mauryavijai
Mauryavijai  
Posted on: 6/15/2012 5:11:25 AM
Level: Starter | Status: [Member] | Points: 50

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. | Reply | Alert Moderator 

.Netlearner
.Netlearner  
Posted on: 6/18/2012 3:03:48 AM
Level: Starter | Status: [Member] | Points: 25

thank u Its solved

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

Reply - Please login to reply


Click here to login & reply

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/21/2013 3:15:04 PM