public static data.baseDS.bizSubSectorRow FindAndCache(data.baseDS.bizSubSectorDataTable tbl, string code) { data.baseDS.bizSubSectorRow row = tbl.FindBycode(code); if (row != null) { return(row); } data.baseDSTableAdapters.bizSubSectorTA dataTA = new data.baseDSTableAdapters.bizSubSectorTA(); dataTA.ClearBeforeFill = false; dataTA.FillByCode(tbl, code); row = tbl.FindBycode(code); if (row != null) { return(row); } return(null); }
protected override object MakeItem(string value) { subSectorRow = myDataTbl.FindBycode(value); if (subSectorRow == null) return new common.myComboBoxItem(value, value); return new common.myComboBoxItem(value + " - " + subSectorRow.description1, value); }
protected override object MakeItem(string value) { data.baseDS.bizSubSectorDataTable tbl = DataAccess.Libs.myBizSubSectorTbl; subSectorRow = tbl.FindBycode(value); if (subSectorRow == null) return new common.myComboBoxItem(value, value); return new common.myComboBoxItem(value + " - " + subSectorRow.description1, value); }