<syncfusion:SfDataGrid x:Name="dataGrid" Margin="20"
AllowEditing="True" SelectionUnit="Cell"
AutoGenerateColumns="False"
ItemsSource="{Binding OrderList}"
IsEnabled="{Binding IsObsScreenEnabled}" Grid.Row="1"
HorizontalAlignment="Stretch" ColumnSizer="None" EnableDataVirtualization="False"
LiveDataUpdateMode="Default"
UseDrawing="Default"
SelectedItem="{Binding Order,UpdateSourceTrigger=PropertyChanged}"
syncfusion:ScrollableContentViewer.VerticalScrollBarVisibility="Visible"
GridCopyOption="CopyData" SelectionMode="Extended" EditTrigger="OnTap"
GridPasteOption="PasteData" AllowDrop="True"
AllowResizingColumns="True" ScrollMode="Async" AllowFiltering="True" AllowSorting="False"
CanUseViewFilter="True" >
<syncfusion:SfDataGrid.Columns>
<syncfusion:GridTextColumn MappingName="ProductName" />
<syncfusion:GridTextColumn MappingName="ProductId" />
<!--SelectionChanged gets DOES NOT fired from here-->
<syncfusion:GridMultiColumnDropDownList x:Name="cmbCountry"
ItemsSource="{Binding DataContext.Shipcities, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}, AncestorLevel=1}}"
HeaderText="Country"
AutoGenerateColumns="True"
MappingName="SelectedShippingLocation"
DisplayMember="Country"
>
</syncfusion:GridMultiColumnDropDownList>
</syncfusion:SfDataGrid.Columns>
<i:Interaction.Triggers>
<i:EventTrigger EventName="CurrentCellDropDownSelectionChanged">
<i:InvokeCommandAction Command="{Binding DataContext.CountryChangedCommand, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type syncfusion:SfDataGrid}, AncestorLevel=1}}" />
</i:EventTrigger>
</i:Interaction.Triggers>
</syncfusion:SfDataGrid> |