private void LoadDataSector(ComboBox obj) { data.baseDS.bizSectorDataTable sectorTbl = DataAccess.Libs.myBizSectorTbl; obj.DataSource = null; obj.Items.Clear(); obj.DisplayMember = sectorTbl.description1Column.ColumnName; obj.ValueMember = sectorTbl.codeColumn.ColumnName; obj.DataSource = sectorTbl; if (sectorTbl.Count > 0) { obj.MaxDropDownItems = sectorTbl.Count; obj.SelectedIndex = 0; } }
public data.baseDS.bizSectorDataTable GetBizSector() { data.baseDS.bizSectorDataTable tbl = new data.baseDS.bizSectorDataTable(); DbAccess.LoadData(tbl); return(tbl); }
public data.baseDS.bizSectorDataTable GetBizSector() { data.baseDS.bizSectorDataTable tbl = new data.baseDS.bizSectorDataTable(); DbAccess.LoadData(tbl); return tbl; }
public static void LoadData(data.baseDS.bizSectorDataTable tbl) { bizSectorTA.ClearBeforeFill = false; bizSectorTA.Fill(tbl); }