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
4341
SelectedItemChanged event of xamComboEditor inside a xamDataGrid
posted

Hello Support,

We are using a xamDataGrid with two xamComboEditor columns. We have added the 'SelectedItemChanged' event to xamComboEditors at design time using event setters.

 

 <Window.Resources>

        <igEditors:ComboBoxItemsProvider x:Key="ComboItemsProviderService"/>

        <Style x:Key="ServiceFieldStyle" TargetType="{x:Type igEditors:XamComboEditor}">

            <Setter Property="ItemsProvider" Value="{StaticResource ComboItemsProviderService}" />

            <EventSetter Event="SelectedItemChanged" Handler="ServiceType_SelectedItemChanged"/>

        </Style>


        <igEditors:ComboBoxItemsProvider x:Key="ComboItemsProviderSplitNum"/>

        <Style x:Key="SplitNumFieldStyle" TargetType="{x:Type igEditors:XamComboEditor}">

            <Setter Property="ItemsProvider" Value="{StaticResource ComboItemsProviderSplitNum}"/>

            <EventSetter Event="SelectedItemChanged" Handler="SplitNumber_SelectedItemChanged"/>

        </Style>

</Window.Resources>

 

When we assign data source to the xamDataGrid, we do not want the 'SelectedItemChanged' event to be called. Can you please suggest a way by which the 'SelectedItemChanged' event is not fired when data source is assigned to the grid.

 

Waiting for your reply.

Thank You.

Parents Reply Children