public void initComboBoxes() { BLClients bLClients = new BLClients(); DataTable clienti = bLClients.GetClient(); cbClient.DataSource = clienti; cbClient.ValueMember = "PartnerId"; cbClient.DisplayMember = "PartnerName"; cbClient.Text = "Clienti"; }
public void initializareDataGridView() { try { BLClients blClienti = new BLClients(); DataTable dt = new DataTable(); dt = blClienti.GetClient(); dataGridViewClienti.DataSource = dt; filled = true; } catch (Exception ex) { MessageBox.Show(ex.Message); } }