Пример #1
0
        private void Load_Suppliers()
        {
            try
            {
                dtSuppliers = objSupplierDL.GetDataView(cmbSupplierCategory.Text);

                gvSupplier.AutoGenerateColumns = false;
                objSourceSuppliers.DataSource  = dtSuppliers;
                gvSupplier.DataSource          = objSourceSuppliers;
                objSourceSuppliers.ResetBindings(true);
            }
            catch (Exception ex)
            {
                MessageBox.Show(this, ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Пример #2
0
        private void POEntering_Load(object sender, EventArgs e)
        {
            try
            {
                dtSuppliers = objSupplier_DL.GetDataView(POType);

                objSource.DataSource   = dtSuppliers;
                cmbSupplier.DataSource = objSource;

                dtMaterials = objMaterial_DL.GetDataView(POType);
                objSourceMaterials.DataSource = dtMaterials;
                cmbMaterials.DataSource       = objSourceMaterials;
            }
            catch (Exception ex)
            {
            }
        }