Click here to Skip to main content
15,905,508 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

C#
<FooterTemplate>
<asp:DropDownList ID="ddlMaterial_Type" runat="server" Width="100%">
<asp:ListItem Value="Select"><-Select-></asp:ListItem>
</asp:DropDownList>
</FooterTemplate>


C#
protected void GV_RowDataBound(object sender, GridViewRowEventArgs e)
   {
       if (e.Row.RowType == DataControlRowType.Footer)
       {
           DataSet ds = new DataSet();
           ds = ViewState["ds"] as DataSet;
           DropDownList ddlMaterial_Type = (DropDownList)e.Row.FindControl("ddlMaterial_Type");
           ddlMaterial_Type.DataSource = ds;
           ddlMaterial_Type.DataTextField = "DED_Name";
           ddlMaterial_Type.DataValueField = "DED_Id";
           ddlMaterial_Type.DataBind();
       }
   }


i wrote like this but nothing is displayed in my footer,

can any one help me to solve this...
Posted

1 solution

Hi,

You need to set ShowFooter property of Gridview control to true .

Regards,
Gayatri
 
Share this answer
 
Comments
[no name] 27-Sep-12 2:47am    
Thank u very much Gayathri i forget to set showFooter property.
Thanks a lot

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