I’d like the CheckedChanged event for the checkbox in my gridview row to fire when clicking anywhere in the gridview row. So far, I’ve gotten as far as this…
e.Row.Attributes.Add("onclick", "javascript:" + Page.ClientScript.GetPostBackEventReference(checkbox, "")); (in the gridview RowDataBound event handler)
The problem is that the postback occurs but the event doesn’t fire.
Change you code with following:
I suppose, that CheckBox control checking previous state on postback and if it the same as before, the RaisePostBackEvent method not fired.