0

This is the code i wrote for selecting all check boxes in datagrid bt it doen.t showin any error n also nt running too????????????????


Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
Dim i As Integer
If CheckBox1.Checked = True Then
For i = 0 To DataGrid1.Items.Count - 1
Dim chk As CheckBox
chk = DataGrid1.Items(i).FindControl("Select All")
chk.Checked = True
Next
End If

End Sub

2
Contributors
1
Reply
2
Views
11 Years
Discussion Span
Last Post by tgreer
0

Please use code tags. Please don't apply unnecessary formatting to your posts. One question mark will suffice to indicate a question.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.