01.
void
Button1_Click(
object
sender,EventArgs e)
02.
{
03.
CheckBox chkCusID;
04.
Label lblID;
05.
int
i;
06.
lblText.Text =
""
;
07.
for
( i = 0; i <= myGridView.Rows.Count - 1; i++)
08.
{
09.
chkCusID = (CheckBox)myGridView.Rows[i].FindControl(
"chkCustomerID"
);
10.
lblID = (Label)myGridView.Rows[i].FindControl(
"lblCustomerID"
);
11.
if
(chkCusID.Checked)
12.
{
13.
14.
this
.lblText.Text =
this
.lblText.Text +
"<br>"
+ lblID.Text;
15.
}
16.
}
17.
}