Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
151272 | Feb 5,2020 02:31 PM UTC | Feb 13,2020 05:35 AM UTC | WPF | 4 |
![]() |
Tags: SfDataGrid |
<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> |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.