We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to trigger SelectionChanged from GridMultiColumnDropDownList

Thread ID:





151272 Feb 5,2020 02:31 PM UTC Feb 13,2020 05:35 AM UTC WPF 4
Tags: SfDataGrid
Srikanth Vattipally
Asked On February 5, 2020 02:31 PM UTC

Hi team,,

I am using GridMultiColumnDropDownList inside sfDataGrid in my application along the lines of MVVM.
I am trying to make use of EventTriggers with EventName = "SelectionChanged" inside GridMultiColumnDropDownList and capture the command on the VM, so that i can do some other implementations.

I observe the SelectionChanged does not get fired when I change the selection.

Similar implementation for SfMultiColumnDropDown works though.

I have attached a sample with similar code for reference. Please let me know how to acheive the SelectionChanged event for GridMultiColumnDropDownList .
Feel free to make modifications for the attached sample, incase it helps.

Srikanth V.

Attachment: SelectionChangedEvent_1adcfbd3.zip

Saravanan Ayyanar [Syncfusion]
Replied On February 6, 2020 05:54 PM UTC

Hi Srikanth, 
Thank you for using Syncfusion controls. 
Currently we are checking your reported scenario. We will validate this and provide you details on or before 10th February, 2020. We appreciate your patience until then. 
Saravanan A. 

Saravanan Ayyanar [Syncfusion]
Replied On February 7, 2020 02:38 PM UTC

Hi Srikanth, 
Thank you for your patience. 
We have checked your reported scenario. You are tried to access the SelectionChanged event for MultiColumnDropDownList column, but it doesn’t have that event. You need to call the  SfDataGrid.CurrentCellDropDownSelectionChanged event and  declare the event trigger after define columns. Please refer the below code snippet. 
<syncfusion:SfDataGrid x:Name="dataGrid" Margin="20" 
                        AllowEditing="True"  SelectionUnit="Cell" 
                        ItemsSource="{Binding OrderList}"                                
                        IsEnabled="{Binding IsObsScreenEnabled}" Grid.Row="1" 
                        HorizontalAlignment="Stretch" ColumnSizer="None"  EnableDataVirtualization="False"   
                        SelectedItem="{Binding Order,UpdateSourceTrigger=PropertyChanged}" 
                        GridCopyOption="CopyData" SelectionMode="Extended"  EditTrigger="OnTap" 
                        GridPasteOption="PasteData" AllowDrop="True" 
                        AllowResizingColumns="True" ScrollMode="Async" AllowFiltering="True" AllowSorting="False"  
                        CanUseViewFilter="True" > 
         <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}}"   
         <i:EventTrigger EventName="CurrentCellDropDownSelectionChanged"> 
             <i:InvokeCommandAction Command="{Binding DataContext.CountryChangedCommand, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type syncfusion:SfDataGrid}, AncestorLevel=1}}" /> 
Modified Sample Link: 
UG Link: 
Please let us know, if you require further assistance on this. 
Saravanan A. 

Srikanth Vattipally
Replied On February 12, 2020 02:12 PM UTC

Hi Saravanan,

Thank you for the response. 
I will try to proceed in the direction provided by you. 

Srikanth V

Farjana Parveen Ayubb [Syncfusion]
Replied On February 13, 2020 05:35 AM UTC

Hi Srikanth, 
Thanks for the update. 
We will wait to hear from you. 
Farjana Parveen A 


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon