Articles in this section

How to change selected cell border color in WPF GridControl?

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)
Access denied
Access denied