如何获取GridView的模板TemplateField RadioButtonList中的值

2024-12-01 23:30:19
推荐回答(1个)
回答(1):

for( int i=0;i{
RadioButtonList rbtList=(RadioButtonList)(gridView1.row[i].Cells[0].FindControl(" RadioButtonList控件ID"));
string str=rbtList.SelectedValue;
}