Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8656581
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T15:18:41+00:00 2026-06-12T15:18:41+00:00

I am using a cascading comboboxes inside datagrid.I am able to get the datas

  • 0

I am using a cascading comboboxes inside datagrid.I am able to get the datas based on selectionchanged but that event is firing for every row.
Here is my code:

<sdk:datagridtemplatecolumn header="Category" width="110">

    <sdk:datagridtemplatecolumn.celltemplate>
        <datatemplate>                                    
            <combobox foreground="Black" height="30" isenabled="{Binding Source={StaticResource EffortViewModel}, Path=ComboBoxStatus}" itemssource="{Binding Source={StaticResource EffortViewModel},Path=ProjTypeTaskCtry}" displaymemberpath="TaskCtgyName" selectedvaluepath="TaskCtgy_FK" selectedvalue="{Binding Source={StaticResource EffortViewModel}, Path=TaskCtgy_FKField,Mode=TwoWay}" />
        </datatemplate>
    </sdk:datagridtemplatecolumn.celltemplate>
</sdk:datagridtemplatecolumn>

<sdk:datagridtemplatecolumn header="SubCategory" width="110">

    <sdk:datagridtemplatecolumn.celltemplate>
        <datatemplate>
            <combobox foreground="Black" height="30" isenabled="{Binding Source={StaticResource EffortViewModel}, Path=ComboBoxStatus}" itemssource="{Binding Source={StaticResource EffortViewModel},Path=SubCtry,Mode=OneWay}" displaymemberpath="TaskSubCtgyName" selectedvaluepath="{Binding TaskSubCtgy_PK, Mode=TwoWay}" selectedvalue="{Binding TaskSubCtgy_FKField,Mode=OneTime}" selectedindex="{Binding TaskSubCtgy_FKField}" /> 
        </datatemplate>
    </sdk:datagridtemplatecolumn.celltemplate>
</sdk:datagridtemplatecolumn>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T15:18:42+00:00Added an answer on June 12, 2026 at 3:18 pm

    I had the same problem in Silverlight MVVM. I found a solution for this from somewhere. Hope this will help you.

    namespace Test
    {
    
         public class ComboBoxSelectionChange : TriggerAction<DependencyObject>
             {
               public ComboBoxSelectionChange()
                {
                }
           public ComboBox DayComboBox
           {
             get { return (ComboBox)GetValue(DayComboBoxProperty); }
             set { SetValue(DayComboBoxProperty, value); }
            }
    
    
    
           public static readonly DependencyProperty DayComboBoxProperty =
                             DependencyProperty.Register("DayComboBox",
                             typeof(ComboBox),
                             typeof(ComboBoxSelectionChange),
                             new PropertyMetadata(null, OnDayComboBoxPropertyChanged));
    
           private static void OnDayComboBoxPropertyChanged(DependencyObjectd, DependencyPropertyChangedEventArgs e)
              {
                 var source = d as ComboBoxSelectionChange;
                 if (source != null)
                  {
                    var value = (ComboBox)e.NewValue;
                  }
              }
    
           protected override void Invoke(object o)
             {
                if (this.DayComboBox != null)
                  {
                    //this method will execute when the selection is changed
                  }
             }
    
         }
     }
    

    Use the Test namespace in Usercontrol assembly

      xmlns:Common="clr-namespace:Test"
    
      <UserControl.Resources>
            <Common:ComboBoxSelectionChange x:Name="ComboBoxItem"/>
      </UserControl.Resources>
    
    
         <DataTemplate x:Key="EditMondayDataTemplate">
            <ComboBox x:Name="cmbMonday" Height="26" Margin="3" ItemsSource="{Binding Monday,Mode=OneTime}" DisplayMemberPath="displayText" SelectedItem="{Binding Path=MonSelected,Mode=TwoWay}" HorizontalAlignment="Center" VerticalAlignment="Center" Width="80">
                <i:Interaction.Triggers>
                      <i:EventTrigger EventName="SelectionChanged">
                            <Common:ComboBoxSelectionChange DayComboBox="{Binding ElementName=cmbMonday}" TextParam="Monday"/>
                      </i:EventTrigger>
                </i:Interaction.Triggers>
            </ComboBox>         
        </DataTemplate>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using the AJAX Cascading drop down list but want to add event
I have written a cascading drop down list using JQuery. The code that I
Using the Redis info command, I am able to get all the stats of
I've typically done this using edmx's but this time in order to use cascading
I am using WPF and an MVVM pattern. All the comboboxes that are bound
i tried to change an cascading dropdownlist example http://www.codedigest.com/Articles/jQuery/224_Building_Cascading_DropDownList_in_ASPNet_Using_jQuery_and_JSON.aspx But i get always the
So I have a cascading dropdown of sorts, but using List Boxes. When an
Using Location.getBearing(); I seem to get randomly changing bearings. Aka, I can turn the
I have a series map-reduce jobs to process user data (implemented using the Cascading
I'm using LINQtoSQL to create cascading deletes IE: if Category is deleted then all

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.