protected override void LoadViewState(object savedState) { base.LoadViewState(savedState); cols = (GridColumnCollection)ViewState["cols"]; currentPage = ViewState["currentPage"] == null ? 1 : (int)ViewState["currentPage"]; }
protected override void LoadViewState(object savedState) { base.LoadViewState(savedState); cols = (GridColumnCollection) ViewState["cols"]; currentPage = ViewState["currentPage"] == null ? 1 : (int) ViewState["currentPage"]; }