private void GetCustomerSLA(int RegionID) { try { DataTable dt = objBSS.GetCustomerSLA(Convert.ToInt16(cmbCustomerCode.SelectedValue), RegionID, "4", Convert.ToDateTime(dtSLA.SelectedDate)); dtForExcel = new DataTable(); dtForExcel = dt; if ((dt.Rows.Count > 0)) { gvCircuitSLAView.DataSource = dt; gvCircuitSLAView.DataBind(); checkMonthSLA(); checkYearSLA(); gvCircuitSLAView.MasterTableView.GetColumn("ViewComplain").Display = true; } else { gvCircuitSLAView.DataSource = null; gvCircuitSLAView.MasterTableView.GetColumn("ViewComplain").Display = true; } } catch (Exception ex) { throw ex; } }