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
1030
TabControl SelectionChanged raised unnecessarily when using XamDataGrid
posted

Hi,

I'm using .Net TabControl, inside i have placed the XamDataGrid and Changed AllowRecordFiltering to True. When loading the window, Tabcontrol's SelectionChanged event fired by XamDataGrid. OriginalSource would be XamDataGrid and Source would be the ComboBox which is available in the XamDataGrid (Filter Column). I don't know why it is raised. I have attached the sample application. Please check it and give me solution.

 

Thanks & Regards

Kumaran V

XamCalcManager.zip
  • 138253
    Offline posted

    Hello Kumaran,

     

    Thank you for your post. I have been looking into it and the sample you have sent, and I can say that, since WPF has routed events, the SelectionChanged event is one of them and both the ComboBox and TabControl has it, it is normal to be fired from the Combobox that is inside the XamComboEditor of the XamDatagrid’s FilterRow, so my suggestion is to check the OriginalSource of the EventArgs to determine whether to handle the event or not.

     

    Hope this helps you.