protected override string GetCallbackResult() { if (this.FilterExpression != "") { GridViewFilteringEventArgs ee = new GridViewFilteringEventArgs(); ee.FilterExpression = this.FilterExpression; GridViewFiltering(this, ee); } return(base.GetCallbackResult()); }
protected override void OnLoad(EventArgs e) { base.OnLoad(e); if (!this.DesignMode) { if (this.FilterExpression != "") { GridViewFilteringEventArgs ee = new GridViewFilteringEventArgs(); ee.FilterExpression = this.FilterExpression; GridViewFiltering(this, ee); } } //if (this.SortExpression == "") //{ // this.Sort(this.DefaultSortExpression, SortDirection.Ascending); //} }