raphael232
Programmer
Hi, i'm making an attempt at the article at Everything works a treat except that instead of using the datakey (as done in the article) i wish to use a field bounded to the gridview. I have tried doing:
To return the Title field but it keeps returning an empty string.
Appreciate it if someone could tell me what i am doing wrong.
Thanks
Code:
For i As Integer = 0 To GridView1.Rows.Count - 1
Dim chkAuthorise As CheckBox = CType(GridView1.Rows(i).FindControl("chkAuthorise"), CheckBox)
Dim strTitle As String = DataBinder.Eval(GridView1.Rows(i).DataItem, "Title")
If chkAuthorise.Checked Then
lblSummary.Text &= "<li>" & strTitle & "</li>"
End If
Next
To return the Title field but it keeps returning an empty string.
Appreciate it if someone could tell me what i am doing wrong.
Thanks