跳转至

DataGrid

Category: Basic Controls & Styles · A standard WPF control; the linked sample demonstrates the WD theme style.

Data grid (row header selection / template columns / grid lines)

Example Source

DataGridExample.xaml

XAML Usage

<DataGrid
                        wd:ElementHelper.CornerRadius="3"
                        wd:ScrollViewerBehavior.IsBackToTopEnabled="True"
                        AutoGenerateColumns="False"
                        FontSize="20"
                        HeadersVisibility="All"
                        ItemsSource="{Binding UserCollection, RelativeSource={RelativeSource AncestorType=UserControl}}"
                        RowHeaderWidth="40">