private void LoadVideoToGridView() { try { gridControl1.DataSource = null; gridControl1.DataSource = BLLVideoLibrary.Gets(); } catch (Exception ex) { throw ex; } }
private void FrmVideoShedule_Load(object sender, EventArgs e) { gridDetail.Enabled = true; cbVideo.DataSource = null; cbVideo.DataSource = BLLVideoLibrary.Gets(); cbVideo.DisplayMember = "Name"; cbVideo.ValueMember = "Id"; cbLine.DataSource = null; cbLine.DataSource = BLLLine.GetLines_s(AccountSuccess.strListChuyenId.Split(',').Select(x => Convert.ToInt32(x)).ToList()); cbLine.ValueMember = "Machuyen"; cbLine.DisplayMember = "TenChuyen"; }