62,046
社区成员
发帖
与我相关
我的任务
分享
private void Bt_sendmail_Click(object sender, System.EventArgs e)
{
int num = this.DataGrid1.Rows.Count;
bool juge = false;
for (int i = 0; i < num; i++)
{
RadioButton rb= (RadioButton )GridView1.Rows[i].FindControl["控件ID"];
if (rb.Checked)
{
juge = true;
}
}
if (!juge)
{
//do something here
}
}