Articles in this section
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`.

Set the border color of selected cell

2. AllowSelection property set to `Row`.

Set the border color of selected Row

3. AllowSelection property set to `Column`

Set the border color of selected Column

Sample: View sample in GitHub

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied