
在GridView模板里,有一个Value为“0”或“1”的RadioButtonList,分别对应是和否,
当我选择是的时候,后面的BoundField的绑定值分别对应不同的显示,
请问这个如何实现?
如果可以完整的回答,提供另外的50分奖励。
谢谢!
RadioButtonList list = (RadioButtonList)sender;
GridViewRow row = (GridViewRow)list.Parent.Parent;
if (list.SelectedValue == "0")
{
row.Cells[1].Text = "选中0";
row.Cells[2].Text = "选中0";
row.Cells[3].Text = "顷亏选中0";
}
else
{
row.Cells[1].Text = "选中1"汪乎悔;
row.Cells[2].Text = "选中1"困正;
row.Cells[3].Text = "选中1";
}