New to Telerik UI for WPFStart a free 30-day trial

Customize Selection

Updated on Sep 15, 2025

RadSpreadsheet exposes several properties that enable you to control the way the selection in the control is rendered. This article describes the available properties and shows you how to work with them.

  • SelectionStroke: A dependency property of type Brush that gets or sets the stroke of the selection.

  • SelectionStrokeThickness: A dependency property of type double that gets or sets the stroke thickness of the selection.

  • SelectionFill: A dependency property of type Brush that gets or sets the fill of the selection.

  • FillHandleSelectionStroke: A dependency property of type Brush that gets or sets the fill handle selection stroke.

Figure 1 shows an example of a customized selection.

Figure 1: Customized selection in RadSpreadsheet

Customized Selection

Example 1 and Example 2 demonstrate how you could customize the properties of the selection in XAML and in code respectively to achieve the result shown in Figure 1.

[XAML] Example 1: Customizing selection

XAML

	<telerik:RadSpreadsheet x:Name="radSpreadsheet" SelectionStrokeThickness="2" SelectionStroke="Green">
	    <telerik:RadSpreadsheet.SelectionFill>
	        <SolidColorBrush Color="GreenYellow" Opacity="0.5" />
	    </telerik:RadSpreadsheet.SelectionFill>
	</telerik:RadSpreadsheet>

[C#] Example 2: Customizing selection

C#

	Brush strokeBrush = new SolidColorBrush(Colors.Green);
	Brush fillBrush = new SolidColorBrush(Colors.GreenYellow);
	fillBrush.Opacity = 0.5;
	
	this.radSpreadsheet.SelectionFill = fillBrush;
	this.radSpreadsheet.SelectionStroke = strokeBrush;
	this.radSpreadsheet.SelectionStrokeThickness = 2;

[VB.NET] Example 2: Customizing selection

VB.NET

	Dim strokeBrush As Brush = New SolidColorBrush(Colors.Green)
	Dim fillBrush As Brush = New SolidColorBrush(Colors.GreenYellow)
	fillBrush.Opacity = 0.5
	
	Me.radSpreadsheet.SelectionFill = fillBrush
	Me.radSpreadsheet.SelectionStroke = strokeBrush
	Me.radSpreadsheet.SelectionStrokeThickness = 2

See Also

In this article
See Also
Not finding the help you need?
Contact Support