I've got a GridView like below:
<asp:GridView ID="Results" runat="server" OnRowDataBound="Results_RowDataBound">
<EmptyDataTemplate>No results found</EmptyDataTemplate>
</asp:GridView>
Protected Sub Results_RowDataBound(ByVal sender As Object, ByVal e As GridViewRowEventArgs)
'do a bunch of work here
End Sub
Based upon user input, sometimes I want the OnRowDataBound event to fire, sometimes I don't.
Is there a way to programatically turn the event on or off?