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
565
WinTree with BindingSource
posted

Hi,

I'm using a BindingSource with the WinTree.

The bindingsource is bound to a datatable and the wintree is bound to the bindingsource.

The problem is, once one of the columns is sorted in the wintree it uses its own sorting mechanism instead of sorting the underlying dataview and therefore the bindingsource is out of sync with the wintree.

Is there a way to tell the wintree to directly sort the underlying datasource so it will remain in sync with the bindingsource ?

thanks.

Parents
No Data
Reply
  • 23930
    Offline posted

    Hi Kal,

    Thank you for contacting Infragistics Developer Support.

    Do you want to sort the DataTable itself, when you sort the tree? If that is the case, the .Net binding manager itself doesn’t transfer the sorting to the underlying data source. It can only track the current selected node by setting the SynchronizeCurrencyManager property of the tree to true.

    Is that what you are trying to achieve? Generally you would use the data table for persisting your data and let the control itself sort it when presenting it to the user.

    I am looking forward to your reply.

Children