Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DataViewBase.FocusedCellBorderTemplate Property

Gets or sets the template that defines the presentation of a focused cell’s border. This is a dependency property.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v24.2.Core.dll

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

public ControlTemplate FocusedCellBorderTemplate { get; set; }

#Property Value

Type Description
ControlTemplate

The template that displays the border.

#Remarks

The GridControl applies the FocusedCellBorderTemplate if the DataViewBase.ShowFocusedRectangle property is set to true and the DataViewBase.NavigationStyle property is set to Cell:

FocusedCellBorderTemplate Example

<dxg:TableView ShowFocusedRectangle="True" NavigationStyle="Cell">
    <dxg:TableView.FocusedCellBorderTemplate>
        <ControlTemplate>
            <Border CornerRadius="4" BorderThickness="2" BorderBrush="Blue"/>
        </ControlTemplate>
    </dxg:TableView.FocusedCellBorderTemplate>
</dxg:TableView>

Refer to the following help topic for more information: Appearance Customization.

See Also