Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
920
Is there any reason why xamdatagrid field does not display combobox?
posted

<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