private void dataGrid_MouseDoubleClick(object sender, MouseButtonEventArgs e) { if (dataGrid.SelectedItem != null) { indiceSeleccionado = dataGrid.SelectedIndex; Operacion operacionGrid = (Operacion)dataGrid.SelectedItem; operacionSeleccionada = (Operacion)operacionGrid.Clone(); bindingOperacion(); /** * if (operacionSeleccionada.Ingreso != 0) * textBox_importe.Text = Convert.ToString(operacionSeleccionada.Ingreso); * else * textBox_importe.Text = Convert.ToString(operacionSeleccionada.Gasto); */ button_aceptar.Content = "Modificar"; } }