public void BindPlanList() { gvPlan.PageSize = PageSize; PlanModel[] model = client.GetAllPlans(ParlourId, PageSize, PageNum, txtKeyword.Text, sortBYExpression, sortType); gvPlan.DataSource = model; gvPlan.DataBind(); }