public override bool Initialize(bool sortingEnabled, Control control) { if (!_bInitialized) { // Become invisble if security conditions are not met if (this.Visible) { this.Visible = ButtonEx.IsUserInAnyRole(control.Page.User, this.RolesRequired); } control.PreRender += new EventHandler(gv_PreRender); _bInitialized = true; } return(base.Initialize(sortingEnabled, control)); }