void ucGe_Menu_Mantenimiento_x_usuario_event_btnModificar_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { var Info = (ba_transferencia_Info)UltraGrid_Transf.GetFocusedRow(); if (Info == null) { MessageBox.Show("Seleccione una fila", "Sistemas", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } else { PrepararFrm(Cl_Enumeradores.eTipo_action.actualizar, Info); } } catch (Exception ex) { Log_Error_bus.Log_Error(ex.ToString()); } }
private void UltraGrid_Transf_RowCellStyle(object sender, DevExpress.XtraGrid.Views.Grid.RowCellStyleEventArgs e) { try { var data = UltraGrid_Transf.GetRow(e.RowHandle) as ba_transferencia_Info; if (data == null) { return; } if (data.tr_estado == "I") { e.Appearance.ForeColor = Color.Red; } } catch (Exception ex) { Log_Error_bus.Log_Error(ex.ToString()); } }