I have this gridview with a checkbox whose checked event I'm trying to capture :
<asp:GridView ID="RMAGridView" runat="server" AutoGenerateColumns="False
" DataKeyNames="UID" >
<asp:CheckBox ID="CheckBox1" runat="server" EnableViewState="true" AutoPostBack="true"/>
Here's where I add the handler:
Protected Sub RMAGridView_RowDataBound(B
yVal sender As Object, ByVal e As System.Web.UI.WebControls.
) Handles RMAGridView.RowDataBound
If e.Row.RowType = DataControlRowType.DataRow
Dim cb As CheckBox = CType(e.Row.Cells(12).Cont
AddHandler cb.CheckedChanged, AddressOf cb_CheckedChanged
Public Sub cb_CheckedChanged(ByVal sender As Object, ByVal e As EventArgs)
The problem is that when I check one of those checkboxes, a postback does take place but cb_CheckChanged is never called. Am I missing something here? I've seen several examples, including this one: http://www.vbcity.com/forums/faq.asp?fid=37&cat=Web+Development&#TID117940
and just don't see what I'm doing wrong. I know this is the weekend, but I'm hoping for a pretty quick response.