示例#1
0
        private void TaoBangTinhTrangVe(string maChuyenBay)
        {
            DataTable dtTinhTrangVe = busTinhTrangVe.GetForDisplayOfMaChuyenBay(maChuyenBay);

            dtgvTinhTrangVe.DataSource = dtTinhTrangVe;
            dtgvTinhTrangVe.Sort(dtgvTinhTrangVe.Columns[0], ListSortDirection.Descending);
            dtgvTinhTrangVe.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
            dtgvTinhTrangVe.AutoSizeRowsMode    = DataGridViewAutoSizeRowsMode.None;
        }
示例#2
0
        private void TaoBangDSHangVeCuaChuyenBay()
        {
            BUS_TinhTrangVe busTinhTrangVe = new BUS_TinhTrangVe();
            DataTable       dtTinhTrangVe  = busTinhTrangVe.GetForDisplayOfMaChuyenBay(txtMaChuyenBay.Text);

            dtgvHangVe.DataSource = dtTinhTrangVe;
            dtgvHangVe.Sort(dtgvHangVe.Columns[0], ListSortDirection.Descending);
            dtgvHangVe.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
            dtgvHangVe.AutoSizeRowsMode    = DataGridViewAutoSizeRowsMode.None;
        }