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
455
Extend this database table example to populate predecessors and resources?
posted

Hello,

I am largely following the c# code example at this link: http://help.infragistics.com/Help/Doc/WinForms/2011.1/CLR2.0/html/WinGanttView_DataBinding_Support_for_WinGanttView.html

Could you expand that example to show how to populate predecessors and resources using the data table approach, please? 

To clarify, I am aware of separate examples that use the ultracalendarview and tasks object, but if I have data bindings behind my tables, I shouldn't have to link to the calendar data, right?  I'd like to understand how to set the AllProperties database field without having to link to the ultracalendar and task objects.     

Thanks,

Myca


  • 29105
    Verified Answer
    Offline posted

    Hello Myca,

    We have a sample that ships with our Windows Forms installer called UltraGanttView CS/VB that I will interest yo.

    The samples are installed and can be found on your C Drive Documents folder here:
    \Infragistics\2014.1\Windows Forms\Samples\Schedule\CS\UltraGanttView CS

    I attached it for your reference. It utilizes the predecesors and resources fields as you requested. (See below)

    Our UltraGanttView, like our other schedule controls, work in conjucntion with the UltraCalendarInfo. And it's required for binding to the controls. The fields in your datasource can bind to similar members exposed from this component as you see in the documentation. The AllProperties is used to persist the entire state of the appointment/task. It takes a byte array which represents any property/field not covered by the data bindings. Binary data in the AllProperties field can store information such as the description of an appointment or task.

    For more details we have another sample called DataBinding CS/VB found in our samples collection.

    Please review my sample and let me know if you have any questions.

    UltraGanttView CS.zip