Esempio n. 1
0
        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();
        }
Esempio n. 2
0
        public MainForm()
        {
            InitializeComponent();

            VendorList.GetVendorList();
        }
Esempio n. 3
0
        private void DataGridBinding_Load(object sender, System.EventArgs e)
        {
            vendorListBindingSource.DataSource = VendorList.GetVendorList();

            dataGridView.Rows[0].Selected = true;
        }
Esempio n. 4
0
 private void DataGridBinding_Load(object sender, System.EventArgs e)
 {
     vendorListBindingSource.DataSource = VendorList.GetVendorList();
 }