Esempio n. 1
0
        private void BindEditForm(object[] data)
        {
            supplierBAL = new BAL.SupplierBAL();
            DataTable table = new DataTable();

            table = supplierBAL.getSuppliers(data);
            BindFields(table);
        }
Esempio n. 2
0
        private void BindSupplierGrid(object[] data)
        {
            supplierBAL = new BAL.SupplierBAL();
            DataTable table = new DataTable();

            table = supplierBAL.getSuppliers(data);
            dataGridSupplier.DataSource         = table;
            this.dataGridSupplier.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridSupplier_RowPostPaint);
            //dataGridUser.Columns[5].DefaultCellStyle.Format = "MM/dd/yyyy";
            //dataGridUser.Columns[6].DefaultCellStyle.Format = "MM/dd/yyyy";
            this.dataGridSupplier.Columns["SupplierId"].Visible = false;
            // Auto Resize
            dataGridSupplier.AutoResizeColumns();
            dataGridSupplier.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells;
        }