private void BindReport() { BLL.MemberLog log = new BLL.MemberLog(); if (!string.IsNullOrEmpty(txtMemberName.Text)) { BLL.Member member = new BLL.Member(); if(member.GetByName(txtMemberName.Text)) { log.Where.MemberID.Value = member.MemberID; log.Where.CreateDate.Operator=MyGeneration.dOOdads.WhereParameter.Operand.Between; log.Where.CreateDate.BetweenBeginValue=Helper.Date.ToDate(txtStartDate.Text); log.Where.CreateDate.BetweenEndValue=Helper.Date.ToDate(txtEndDate.Text).AddDays(1); log.Query.AddOrderBy("CreateDate", MyGeneration.dOOdads.WhereParameter.Dir.DESC); log.Query.Load(); } } grdLog.DataSource = log.DefaultView; grdLog.DataBind(); }