GridControl
<dxg:GridControl Name="grid" ItemsSource="{Binding }" AutoExpandAllGroups="True" AllowDrop="False" IsFilterEnabled="False"> <dxg:GridControl.Columns> <dxg:GridColumn FieldName="Weekday" MinWidth="30" GroupIndex="0"> <dxg:GridColumn.GroupValueTemplate> <DataTemplate> <TextBlock Text="{Binding Path=Value,Converter={StaticResource weekdayConverter}}" Margin="5,0,0,0" /> </DataTemplate> </dxg:GridColumn.GroupValueTemplate> </dxg:GridColumn> <dxg:GridColumn FieldName="Starttime" MinWidth="30"> <dxg:GridColumn.CellTemplate> <DataTemplate> <TextBlock Text="{Binding Path=Value,Converter={StaticResource dateTimeConverter},ConverterParameter='HHmm'}" VerticalAlignment="Center" /> </DataTemplate> </dxg:GridColumn.CellTemplate> </dxg:GridColumn> <dxg:GridColumn FieldName="Endtime" MinWidth="30"> <dxg:GridColumn.CellTemplate> <DataTemplate> <TextBlock Text="{Binding Path=Value,Converter={StaticResource dateTimeConverter},ConverterParameter='HHmm'}" VerticalAlignment="Center" /> </DataTemplate> </dxg:GridColumn.CellTemplate> </dxg:GridColumn> <dxg:GridColumn MinWidth="30" > <dxg:GridColumn.CellTemplate> <DataTemplate> <Button Width="80" Name="btnDelete" Click="btnDelete_Click">Delete</Button> </DataTemplate> </dxg:GridColumn.CellTemplate> </dxg:GridColumn> </dxg:GridControl.Columns> <dxg:GridControl.GroupSummary> <dxg:GridSummaryItem SummaryType="Count" /> </dxg:GridControl.GroupSummary> <dxg:GridControl.View> <dxg:TableView Name="view" AllowGrouping="False" AllowEditing="False" AllowColumnFiltering="False" AllowSorting="False" AllowDrop="False" AllowMoving="False" ShowGroupedColumns="False" ShowGroupPanel="False" AutoWidth="True" NavigationStyle="Row" /> </dxg:GridControl.View> </dxg:GridControl>