private void SelectedDriverCompobox(int Id) { driverComboBox.ValueMember = "Id"; driverComboBox.DisplayMember = "FullName"; driverComboBox.DataSource = DriverBl.GetList(); driverComboBox.SelectedValue = Id; }
private void RefreshGrid() { _dataTable = Utility.ToDataTable(DriverBl.GetList()); bindingSource.DataSource = _dataTable; dataGridView.DataSource = bindingSource; dataGridView.Update(); dataGridView.Refresh(); dataGridView.Columns[0].Visible = false; dataGridView.Columns[1].HeaderText = "Full Name"; dataGridViewSearch.SetColumns(dataGridView.Columns); }
private void NewDriverCompobox() { driverNameComboBox.ValueMember = "Id"; driverNameComboBox.DisplayMember = "FullName"; driverNameComboBox.DataSource = DriverBl.GetList(); }