private void frmBookTicket_Load(object sender, EventArgs e) { cbSearch.DataSource = sources(); cbSearch.DisplayMember = "Name"; cbSearch.ValueMember = "ID"; pdcs = BLL_PhieuDatCho.GetPhieuDatChos(); bl = new SortableBindingList <PhieuDatCho>(pdcs); dgvBuyTicket.DataSource = bl; CustomDgv(); //Update scrollbar scrollHelper = new PanelScrollHelper(pnScroll, sb, false); scrollHelper.UpdateScrollBar(); }
private void reloadData() { pdcs = BLL_PhieuDatCho.GetPhieuDatChos(); bl = new SortableBindingList <PhieuDatCho>(pdcs); dgvBuyTicket.DataSource = bl; }