Hi friend
can any one help me to handle the checkbox event in the datagrid?
i m having problem regardig to handle the checkedchanged event of checkbox.
Thanks
How to hande checkbox event in datagrid
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

nikshukla33 reputationPosted Nov 17, 2006, 8:51 AM EST
You need to do something as follows.
ItemCreated event of datagrid.
If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = ListItemType.AlternatingItem Then
Dim cbS As CheckBox
If Not e.Item.Cells(0).FindControl("chkSelected") Is Nothing Then
cbS = CType(e.Item.Cells(0).FindControl("chkSelected"), CheckBox)
AddHandler cbS.CheckedChanged, AddressOf checkBox_CheckedChanged
End If
cbS = nothing
End If
Private Sub checkBox_CheckedChanged()
End Sub