private int BindMisGridView() { gvExtractMIS.Visible = false; if (Cache[sCacheIndex] != null) { Cache.Remove(sCacheIndex); } DataSet dsOrderMis = boOnlineOrderBackOffice.GetMfOrderExtract(rdpExtractDate.SelectedDate.Value, advisorVo.advisorId, ddlExtractType.SelectedValue, ddlRnT.SelectedValue, int.Parse(ddlProductAmc.SelectedValue)); if (dsOrderMis == null) { return(0); } if (dsOrderMis.Tables.Count <= 0) { return(0); } DataTable dtOrderMIS = dsOrderMis.Tables[0]; int cRows = dtOrderMIS.Rows.Count; if (cRows <= 0) { return(0); } gvExtractMIS.DataSource = dtOrderMIS; gvExtractMIS.DataBind(); gvExtractMIS.Visible = true; Cache.Remove(sCacheIndex); if (Cache[sCacheIndex] == null) { Cache.Insert(sCacheIndex, dtOrderMIS); } return(cRows); }