Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

New Post: Turning off alternating rows in Data Grid

$
0
0
Hi,

The DataGrid can use a TableView or a TableflowView, default is TableflowView.
The TableView and TableflowView have a property called "IsAlternatingRowStyleEnabled".
By default, TableView.IsAlternatingRowStyleEnabled is False while TableflowView.IsAlternatingRowStyleEnabled is True.
You just need to set the value to False for the TableflowView:
<xcdg:DataGridControl x:Name="_dataGrid">
            <xcdg:DataGridControl.View>
                <xcdg:TableflowView IsAlternatingRowStyleEnabled="False" />
            </xcdg:DataGridControl.View>
        </xcdg:DataGridControl>

Viewing all articles
Browse latest Browse all 4964

Trending Articles