示例#1
0
 private void SelectedDriverCompobox(int Id)
 {
     driverComboBox.ValueMember   = "Id";
     driverComboBox.DisplayMember = "FullName";
     driverComboBox.DataSource    = DriverBl.GetList();
     driverComboBox.SelectedValue = Id;
 }
示例#2
0
        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);
        }
示例#3
0
 private void NewDriverCompobox()
 {
     driverNameComboBox.ValueMember   = "Id";
     driverNameComboBox.DisplayMember = "FullName";
     driverNameComboBox.DataSource    = DriverBl.GetList();
 }