private void eliminarInstrumentoToolStripMenuItem_Click(object sender, EventArgs e) { string rpta = ""; int nId = Convert.ToInt32(dataInstrumentos.Rows[dataInstrumentos.CurrentRow.Index].Cells[0].Value); string nCodigo = Convert.ToString(dataInstrumentos[1, dataInstrumentos.CurrentRow.Index].Value); if (MessageBox.Show("Eliminar el Instrumento '" + Convert.ToString(dataInstrumentos[2, dataInstrumentos.CurrentRow.Index].Value) + "'", "Sistema Mantenimiento", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK) { rpta = NInstrumento.Eliminar(nId, nCodigo); ListarInstrumentos(); } }