954,580 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Select all check boxes in datgrid by one check box outside thegrid

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????????????????


PrivateSub 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

anju
Newbie Poster
1 post since May 2006
Reputation Points: 10
Solved Threads: 0
 

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

tgreer
Made Her Cry
Team Colleague
2,118 posts since Dec 2004
Reputation Points: 227
Solved Threads: 37
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You