public Form1() { InitializeComponent(); myGridView1.ShowFindPanel(); myGridControl1.DataSource = Data.CreateData(10); GridRowCellState state = GridRowCellState.Even | GridRowCellState.FocusedAndGridFocused; GridRowCellState newState = state & GridRowCellState.FocusedCell; newState = state & GridRowCellState.Even; }
protected override DevExpress.Utils.AppearanceObject[] GetRowMixAppearances(GridCellInfo cellInfo, GridRowCellState state, GridRowInfo bi, DevExpress.Utils.AppearanceObjectEx column, DevExpress.Utils.AppearanceObject focusedCell, DevExpress.Utils.AppearanceObjectEx conditionCell) { DevExpress.Utils.AppearanceObject[] apps = base.GetRowMixAppearances(cellInfo, state, bi, column, focusedCell, conditionCell); if ((state & GridRowCellState.Selected) != 0) { apps.SetValue(PaintAppearance.SelectedRow, 0); } return(apps); }