<igWpf:XamDataGrid Width="1000" Name="FlatViewSelectedGrid" DataSource="{Binding FlatResults, UpdateSourceTrigger=PropertyChanged}" GroupByAreaLocation="None" AutoFit="true" SelectedItemsChanged="FlatViewGrid_OnSelectedItemsChanged" HorizontalAlignment="Stretch" CellContainerGenerationMode="LazyLoad" RecordContainerGenerationMode="LazyLoad" >
<igWpf:XamDataGrid.FieldLayouts> <igWpf:FieldLayout>
<igWpf:FieldLayout.Fields>
<igWpf:Field Name="Employee" Label="EmployeeName"> <igWpf:Field.Settings> <igWpf:FieldSettings EditorType="{x:Type igEditors:XamComboEditor}"> <igWpf:FieldSettings.EditorStyle> <Style TargetType="{x:Type igEditors:XamComboEditor}"> <Setter Property="DisplayMemberPath" Value="Name" /> <Setter Property="ItemsSource" Value="{Binding Source={StaticResource ViewModelProxy}, Path=Data.Employees}" /> </Style> </igWpf:FieldSettings.EditorStyle> </igWpf:FieldSettings> </igWpf:Field.Settings> </igWpf:Field>
</igWpf:XamDataGrid.FieldLayouts>
</igWpf:XamDataGrid>
public class Employee { public string Name { get; set; } }
My viewmodel has observableCollection of Employee and loads the list. I am able to easily show comboboxes with values using xamgrid but not able to do the same with xamdatagrid.
Thank you
HI ,
Please let me know if you need further assistance regarding this issue.
Sincerely, Matt Developer Support Engineer
HI,
I used your xaml and create a sample application.
Please review the attached sample.
Sincerely,
Matt
Developer Support Engineer