本文介绍了我的页脚中没有任何显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
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...
推荐答案
这篇关于我的页脚中没有任何显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!