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
[Resolved] Reply |
Reply with attachment |
Alert Moderator