public void ComboWareHouse() { cmbWarehouse.DataSource = _wareHouseService.GetAllWareHouses(); cmbWarehouse.ValueMember = "WareHouseId"; cmbWarehouse.DisplayMember = "WareHouseName"; for (int i = 0; i < cmbWarehouse.MultiColumnComboBoxElement.Columns.Count; i++) { cmbWarehouse.MultiColumnComboBoxElement.Columns[i].IsVisible = false; } cmbWarehouse.MultiColumnComboBoxElement.Columns["WareHouseName"].IsVisible = true; }
private void btnRefresh_Click(object sender, EventArgs e) { grdData.DataSource = _wareHouseService.GetAllWareHouses(); }