Category / Section
How to change selected cell border color in WPF GridControl?
1 min read
In WPF GridControl, You can show border around the selection by setting ExcelLikeSelectionFrame property to true. You can change the border color excel-like selection frame by setting HighlightedSelectionBorder property.
C#
grid.Model.Options.AllowSelection = Syncfusion.Windows.Controls.Grid.GridSelectionFlags.Cell;
grid.Model.Options.ExcelLikeSelectionFrame = true;
grid.Model.Options.HighlightSelectionBorder = Brushes.Green;
1. AllowSelection property set to `Cell`.
2. AllowSelection property set to `Row`.
3. AllowSelection property set to `Column`
Sample: View sample in GitHub