In my application I have to assign the predecessor tasks for dependent tasks. Once i assign the Predecessor, i have to save in a table. After save i have to retrieve and assign the Predecessor. How to bound the saved predecessor?
Hello,
In order to add predecessor for any task you should use its Dependencies collection property. Please use code like Task1.Dependencies.Add(Task2, TaskDependencyType.FinishToStart);. For more information please see the following links.:
http://help.infragistics.com/Help/NetAdvantage/WinForms/2011.1/CLR2.0/html/Infragistics2.Win.UltraWinSchedule.v11.1~Infragistics.Win.UltraWinSchedule.Task~Dependencies.html
http://help.infragistics.com/Help/NetAdvantage/WinForms/2011.1/CLR2.0/html/Infragistics2.Win.UltraWinSchedule.v11.1~Infragistics.Win.UltraWinSchedule.TaskConstraint.html
once you have added a dependencies, this will be write up into “AllProperties” column of the underlying data table if you are using the following model for binding of UltraGanttView:
http://help.infragistics.com/Help/NetAdvantage/WinForms/2011.1/CLR2.0/html/WinGanttView_DataBinding_Support_for_WinGanttView.html
I have created a small sample, where I am reading my DataSource from xml. In the sample is shown how to add predecessor via code and also you could save made changes.
Please let me know if you have any further questions.
Thanks For your Samples, I run the Samples, but you didNot display the any values in Predecessors like 8FS, 3SS while retrive values from datatable. For example, When i create New Schedule for my task i use predecessor for second Row is 1FS in prdecessor. After i save the Data, i have to retrive again the Same set of data and also dispaly 1FS in predecessor in second ROW.
How to do it?
Thanks in advance....