예제 #1
0
 public static void SetGridFocused(BandedGridView view, DrawFocusRectStyle focustyle, bool isGridFocused)
 {
     view.FocusRectStyle = isGridFocused ? focustyle : DrawFocusRectStyle.None;
     view.OptionsSelection.EnableAppearanceFocusedCell   = isGridFocused;
     view.OptionsSelection.EnableAppearanceFocusedRow    = isGridFocused;
     view.OptionsSelection.EnableAppearanceHideSelection = isGridFocused;
 }
예제 #2
0
 public void SetFocusedRowIndication(bool highlight)
 {
     IsFocusedRowHighlighted = highlight;
     if (!highlight)
     {
         prevFocusRectStyle = _view.FocusRectStyle;
     }
     _view.BeginUpdate();
     _view.FocusRectStyle = highlight ? prevFocusRectStyle : DrawFocusRectStyle.None;
     _view.OptionsSelection.EnableAppearanceFocusedCell   = IsFocusedRowHighlighted;
     _view.OptionsSelection.EnableAppearanceFocusedRow    = IsFocusedRowHighlighted;
     _view.OptionsSelection.EnableAppearanceHideSelection = IsFocusedRowHighlighted;
     //_view.OptionsView.ShowIndicator = IsFocusedRowHighlighted;
     _view.EndUpdate();
 }