Back to Devexpress

ListView.GridControlStyle Property

wpf-devexpress-dot-xpf-dot-scheduling-dot-listview-f6a31340.md

latest1.7 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

csharp
public Style GridControlStyle { get; set; }
vb
Public Property GridControlStyle As Style

Property Value

TypeDescription
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.

xaml
<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

ListView Class

ListView Members

DevExpress.Xpf.Scheduling Namespace