01.
Sub
Button1_Click(sender
As
Object
, e
As
EventArgs)
02.
Dim
chkCusID
As
CheckBox
03.
Dim
lblID
As
Label
04.
Dim
i
As
Integer
05.
lblText.Text =
""
06.
For
i = 0
To
myGridView.Rows.Count - 1
07.
chkCusID = myGridView.Rows(i).FindControl(
"chkCustomerID"
)
08.
lblID = myGridView.Rows(i).FindControl(
"lblCustomerID"
)
09.
IF chkCusID.Checked =
True
Then
10.
11.
Me
.lblText.Text =
Me
.lblText.Text &
"<br>"
& lblID.Text
12.
End
IF
13.
Next
14.
End
Sub