Private Function SelectedValues() As String
Dim strValues As String = ""
For i As Integer = 0 To GridView.Rows.Count - 1
Dim chkSelect As CheckBox
chkSelect = CType(gvClientContact.Rows(i).FindControl("chkSelect"), CheckBox)
If Not chkSelect Is Nothing Then
If chkSelect.Checked Then
strValues &= CStr(GridView.DataKeys(i).Values(0)) & ","
End If
End If10/09/2010
Next
Return strValues.Trim(CChar(","))
End Function
Friday, October 28, 2011
Get selected values of checkbox from GridView in ASP.NET
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment