I have gridview in which i have check box control Like this image.

Problem is that i want to use the values of checked status.Mean if status is checked then i want assign the values to a string like this 867,864.I have tried a little code here but its not working properly
For Each gvrow As GridViewRow In GridView5.Rows
Dim chkbox As CheckBox = CType(gvrow.FindControl("chkStatusGM"), CheckBox)
If chkbox.Checked Then
Dim bpv As String = GridView5.Rows(0).Cells(3).Text
Response.Write(bpv)
End If
Next
But the out put is 867867 not 867,864 which i want.Please anyone help to get the desired output
1 Answer