private void BindDistributorGrade() { AgentGradeQuery entity = new AgentGradeQuery { AgentGradeName = this.m_txtName, SortBy = "AgentGradeId", SortOrder = SortAction.Asc }; Globals.EntityCoding(entity, true); entity.PageIndex = this.pager.PageIndex; entity.PageSize = this.pager.PageSize; DbQueryResult agentGradeRequest = DistributorGradeBrower.GetAgentGradeRequest(entity); this.rptList.DataSource = agentGradeRequest.Data; this.rptList.DataBind(); this.pager.TotalRecords = agentGradeRequest.TotalRecords; }