protected void BindData() { string startDate = datePicker.Value.Trim(); string endDate = datePickerEnd.Value.Trim(); DataTable ds = MsgBLL.GetMsgTransBySellerNick(Users.Nick, startDate, endDate); //根据分页情况将数据写入或者更新到数据库 this.grdBuyer.DataSource = ds; this.grdBuyer.DataBind(); }