private void LoadPhongInFo() { DataTable dtTablePhong = new DataTable(); dtTablePhong = phongBUS.GetAll(); cbo_Phong.DataSource = dtTablePhong; cbo_Phong.ValueMember = "SO_PHONG"; cbo_KhachHang.DisplayMember = "SO_PHONG"; }
private void LoadGrid() { try { DataTable dTablePhong = new DataTable(); dTablePhong = phongBUS.GetAll(); grdCtrl_CapNhatPhong.DataSource = dTablePhong; } catch (Exception exception) { MessageBox.Show(exception.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }