我的页脚中没有任何显示 [英] Nothing is displayed in my Footer

查看:73
本文介绍了我的页脚中没有任何显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



Hi,

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





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...

推荐答案



您需要将Gridview控件的ShowFooter属性设置为true.

问候,
Gayatri
Hi,

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

Regards,
Gayatri


这篇关于我的页脚中没有任何显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆