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
1065
Updating Datasource And BindingContext
posted

My ultraganttview is bound to a datatable via ultracalenderinfo.setdatabindingfortask. Is there a way to track in the datasource which record is the current record?

Normally I use;

dim bm as bindingmanagerbase = bindingcontext(datatable). That way I can track the current and position. of bm when the record moves.

I tried ultracalenderinfo.databindingfortasks.bindingcontext but no luck.

Parents
  • 69832
    Offline posted

    UltraGanttView does not synchronize the binding manager's position with that of the ActiveTask. You can handle the ActiveTaskChanged event and use the binding list properties ofthe task to do this yourself.

    Example:
    void ultraGanttView1_ActiveTaskChanged(object sender, Infragistics.Win.UltraWinGanttView.ActiveTaskChangedEventArgs e)
    {
        BindingManagerBase bm = this.BindingContext[taskTable];
        bm.Position = e.ActiveTask.BindingListIndex;
    }

     

Reply Children