private void frmListarPersona_Load(object sender, EventArgs e) { dgvPersonas.DataSource = objPersonaL.mtdListarPersona(); cmbRol.DataSource = objRolL.mtdListar(); cmbRol.DisplayMember = "Rol"; cmbRol.ValueMember = "IdRol"; c.mtdAutoCompleteNombre(txtNombre); }
private void frmRegistrarPersona_Load_1(object sender, EventArgs e) { cmbRol.DataSource = objRolL.mtdListar(); cmbRol.DisplayMember = "Rol"; cmbRol.ValueMember = "IdRol"; }