Vote count:
0
protected void Button1_Click(object sender, EventArgs e) { foreach (GridViewRow row in GridView1.Rows) { CheckBox cb = (CheckBox)row.FindControl("CheckBox1");
if (cb.Checked == false)
{
Label1.Text = "select a row ";
}
else if (cb.Checked == true)
{
Label1.Text = " row selected ";
}
}
}
asked 54 secs ago
could anyone help me out this code to work?
Aucun commentaire:
Enregistrer un commentaire