I guess I won't know the reason why __doPostBack
is not defined after changing row selection any time soon, but the workaround for now is to 'force' the generation of this function in a standard fashion (lots of people have had various underlying reasons to do this):
protected void Page_Load(object sender, EventArgs e)
{
Page.ClientScript.GetPostBackEventReference(gvUsers, "");
//other logic
}
It seems like certain rare circumstances trigger weird bugs in the ASP.NET framework concerning the __doPostBack
function.