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
Notes not available in UltraCalendarInfo after setting DataBindingForNotes
posted

HI,

I've tried using the following code to bind the notes to UltraCalendarInfo, but after binding, the Notes collection is still empty:

----------------------------

this->ultraCalendarInfo1->DataBindingsForNotes->SetDataBinding(this->dataset, "Table1");
this->ultraCalendarInfo1->DataBindingsForNotes->DateMember = "DateTimeStart";
this->ultraCalendarInfo1->DataBindingsForNotes->DataKeyMember = "id";
this->ultraCalendarInfo1->DataBindingsForNotes->DescriptionMember = "Description";
// after the above code this->ultraCalendarInfo1->Notes is still empty

------------------------------

I've tried the same with appointments (DataBindingsForAppointments) by binding to the same table, and set the StartDateTimeMember and EndDateTimeMember, and after that, the Appointments collection is automatic filled with all the data.  Is there any reason why the Appointments collection can be populated by databinding while the Notes collection can't?  Is this a bug (I'm using 8.1.20081.2033)?

Thanks!

Parents
No Data
Reply
  • 69832
    Offline posted

    Try adding the following line: 

    this->ultraCalendarInfo1->DataBindingsForNotes->BindingContextControl = this;

Children
No Data