aspx < ItemTemplate > < asp:HiddenField ID ="hditem" runat ="server" Value ='<%# Eval("item") % > ' /> < asp:RadioButtonList ID ="rblidea" runat ="server" RepeatDirection ="Horizontal" RepeatLayout ="Flow" > < asp:ListItem Value ="1" > 同意 </ asp:ListItem > < asp:ListItem Value ="0" > 不同意 </ asp:ListItem > </ asp:RadioButtonList > </ ItemTemplate > 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; } } } 转载于:https://www.cnblogs.com/cnaspnet/archive/2007/03/09/669415.html