Skip to main content
A newer version of this page is available. .

TableView.RowStyle Property

Gets or sets the style applied to data rows. This is a dependency property.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v18.2.dll

Declaration

public Style RowStyle { get; set; }

Property Value

Type Description
Style

A Style object that represents the style applied to data rows.

Remarks

The RowStyle property specifies the style that groups together properties, resources, and event handlers and shares them between instances of the GridRowContent type.

Target Type:

Optimized mode Non-optimized mode
DevExpress.Xpf.Grid.RowControl GridRowContent

To learn more, see Appearance Customization.

Example

This example demonstrates how to use the View's RowStyle and CellStyle properties to apply custom styles to the focused row and cell. To identify whether the row and cell are focused, the attached IsFocusedRow and IsFocusedCell properties are used.

Imports System
Imports System.Collections.Generic
Imports System.Configuration
Imports System.Data
Imports System.Linq
Imports System.Windows

Namespace DXGrid_ChangeRowAppearance
    ''' <summary>
    ''' Interaction logic for App.xaml
    ''' </summary>
    Partial Public Class App
        Inherits Application

    End Class
End Namespace

The following code snippets (auto-collected from DevExpress Examples) contain references to the RowStyle property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also