private void PopulateList() { _storeID = Convert.ToInt32(cboStores.EditValue); _programID = Convert.ToInt32(cboProgram.EditValue); Items itm = new Items(); _fromMonth = int.Parse(cboFromMonth.EditValue.ToString()); _toMonth = int.Parse(cboToMonth.EditValue.ToString()); _toYear = int.Parse(cboToYear.EditValue.ToString()); _fromYear = int.Parse(cboFromYear.EditValue.ToString()); if (_standardRRF && VisibilitySetting.HandleUnits == 1) { tblRRF = itm.GetRRFReportWithOutUnit(_storeID, _fromYear, _fromMonth, _toYear, _toMonth); } else if (_standardRRF && VisibilitySetting.HandleUnits == 2) { tblRRF = itm.GetRRFReportByUnit(_storeID, _fromYear, _fromMonth, _toYear, _toMonth); } else if (_standardRRF && VisibilitySetting.HandleUnits == 3) { tblRRF = itm.GetRRFReportByUnit(_storeID, _fromYear, _fromMonth, _toYear, _toMonth); } else { tblRRF = itm.GetEmergencyRRFReport(_storeID, _fromYear, _fromMonth, _toYear, _toMonth); } gridItemsChoice.DataSource = tblRRF; ChooseGridView(); }