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
425
ItemsSource Bind to DataView - Refresh
posted

I am using a XamComboEditor.

I binded ItemsSource to a DataView.

When I update one row from the dataview, the values in the combo list are updated correctly, but not the current text displayed in the control itself.

To get the control to update the text displayed, I need to set the ItemsSource to null, and then to set it back to my DataView.

I am looking for the official recommended way to get the update correctly in the control other than nulling and resetting the value, which is bad coding. I don't want to create an ObservableCollection from the items in my dataview, this will create a copy of my data, and it will slow down the whole software.

Thank you.

  • 27093
    posted

    Hello,

     

    I am just checking if you require any further clarification on the matter.

     

    Sincerely,

    Petar, MCTS

    Developer Support Engineer II

    Infragistics

    www.infragistics.com/support

     

  • 27093
    posted

    Hello,

     

    I have been looking into your enquiry, however there is no built-in functionality for updating the SelectedItem of the XamComboEditor when the DataSource changes. The reason for that is because there is no way to know whether in the new data source such an element would be relevant. What I mean is if the item with the same index is taken from the new data source you might get a different item, or if the same object is selected there is no way to know if such an object would still exist in the new data source.

     

    Please let me know if I can provide you with any more clarifications on the matter, or if I have misunderstood you in any way.