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

ListView.GridControlStyle Property

Gets or sets the style applied to the GridControl object used by the view. This is a dependency property.

Namespace: DevExpress.Xpf.Scheduling

Assembly: DevExpress.Xpf.Scheduling.v24.2.dll

NuGet Package: DevExpress.Wpf.Scheduling

#Declaration

public Style GridControlStyle { get; set; }

#Property Value

Type Description
Style

A Style object that represents a style to be applied to the grid control used by the view.

#Remarks

Target Type: GridControl.

The code snippet below illustrates a custom style that applies a filter.

<dxsch:ListView
    x:Name="listView" >
    <dxsch:ListView.GridControlStyle>
        <Style TargetType="dxg:GridControl">
            <Setter Property="FilterString" Value="[Appointment.Type] = ##ToString#Pattern#"/>
        </Style>
    </dxsch:ListView.GridControlStyle>
</dxsch:ListView>
See Also