private void DataGridBinding_Load(object sender, System.EventArgs e) { // Bind ComboBox list datasources first statesBindingSource.EnumToDataSource(typeof(States)); colState.DataSource = statesBindingSource; colState.DisplayMember = "Description"; colState.ValueMember = "Key"; vendorListBindingSource.DataSource = VendorList.GetVendorList(); }
public MainForm() { InitializeComponent(); VendorList.GetVendorList(); }
private void DataGridBinding_Load(object sender, System.EventArgs e) { vendorListBindingSource.DataSource = VendorList.GetVendorList(); dataGridView.Rows[0].Selected = true; }
private void DataGridBinding_Load(object sender, System.EventArgs e) { vendorListBindingSource.DataSource = VendorList.GetVendorList(); }