private void btnNuevo_Click(object sender, EventArgs e)
        {
            FormMantUsuarios frm = new FormMantUsuarios();

            frm.IsInsert    = true;
            frm.FormClosed += new FormClosedEventHandler(Form3_Closed);
            frm.ShowDialog();
        }
 private void btnEditar_Click(object sender, EventArgs e)
 {
     if (GridUsuarios.SelectedRows.Count == 1)
     {
         FormMantUsuarios frm = new FormMantUsuarios();
         frm.IsInsert          = false;
         frm.txtId.Text        = GridUsuarios.CurrentRow.Cells[1].Value.ToString();
         frm.txtNick.Text      = GridUsuarios.CurrentRow.Cells[2].Value.ToString();
         frm.txtNombres.Text   = GridUsuarios.CurrentRow.Cells[3].Value.ToString();
         frm.txtApellidos.Text = GridUsuarios.CurrentRow.Cells[4].Value.ToString();
         frm.txtEmail.Text     = GridUsuarios.CurrentRow.Cells[5].Value.ToString();
         frm.txtTelefono.Text  = GridUsuarios.CurrentRow.Cells[6].Value.ToString();
         frm.IsInsert          = false;
         frm.FormClosed       += new FormClosedEventHandler(Form3_Closed);
         frm.ShowDialog();
     }
     else
     {
         MessageBox.Show("seleccione una fila por favor");
     }
 }