aspx
同意
不同意
cs:
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
int strid = e.Row.RowIndex;
RadioButtonList rbliea = (RadioButtonList)e.Row.FindControl("rblidea");
Button btnSubVise = (Button)e.Row.FindControl("btnSubVise");
HtmlInputButton hReSubVise = (HtmlInputButton)e.Row.FindControl("ReSubVise");
if (rbliea != null)
{
if (((HiddenField)e.Row.FindControl("hditem")).Value == "3")
{
//rbliea.Items.Insert(2, "需客户核准");
rbliea.Items.Insert(2, new ListItem("需客户核准", "2"));
btnSubVise.Visible = false;
hReSubVise.Visible = false;
}
}
}
本文作者:金色約定之家 来源:http://www.cnblogs.com/cnaspnet/
CIO之家 www.ciozj.com 微信公众号:imciow