public void BindData(Categories categories) { if (categories == null) { var queryArgument = new QueryArgument(UserContext.DataBaseInfo) { filter1 = Constants.PartType, filter2 = FRType, FilterKey = Constants.TableMCatDetls }; categories = _controlPanel.GetCategories(queryArgument); } GridViewTable.DataSource = categories; GridViewTable.DataBind(); uplView.Update(); }