<Window x:Class="WpfApplication1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:dg="http://schemas.microsoft.com/wpf/2008/toolkit" xmlns:core="clr-namespace:System;assembly=mscorlib" xmlns:local="clr-namespace:WpfApplication1" xmlns:my="clr-namespace:Microsoft.Windows.Controls;assembly=WPFToolkit" xmlns:localprimitives="clr-namespace:Microsoft.Windows.Controls.Primitives;assembly=WPFToolkit" Title="MainWindow" Height="350" Width="525"> <Window.Resources> <ObjectDataProvider x:Key="RecordValues" MethodName="GetValues" ObjectType="{x:Type core:Enum}"> <ObjectDataProvider.MethodParameters> <x:Type Type="local:RecordValues" /> </ObjectDataProvider.MethodParameters> </ObjectDataProvider> </Window.Resources> <Grid> <dg:DataGrid AutoGenerateColumns="False" ItemsSource="{Binding}" Margin="10" Name="dataGrid1"> <dg:DataGrid.Columns> <dg:DataGridComboBoxColumn Header="Combo" Width="300" SelectedItemBinding="{Binding Value}" ItemsSource="{Binding Source={StaticResource RecordValues}}" /> </dg:DataGrid.Columns> </dg:DataGrid> </Grid> </Window>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)