Hi,
This is my first time use with the UltraGanttView and the UltraCalendarInfo objects. I started my test solution based on Hristo (from Infragistics Team) and it doesn't work (see my code attached).
As you can see in the picture attached, there's no tasks in the Projects[1] and I know that it is supposed to, so the problem must be there but I don't know what's missing. Could you give me a little hint on this? My datatable containing the information that I want to be displayed in the Gantt View is called ProjectDashboard_PlanningGlobal.
If you need more precisions, please feel free to ask,
Thanks a lot,
Olivier
PS: I'm using NetAdvantage for Windows forms version 10.3
Hello,
Are you sure that your “ProjectDashboard_PlanningGlobal” data table has a rows and also that the columns ProjectIDColumn and ProjectKeyColumn contains the Id and Key of the project that you are adding in GanttProject table. In your code I see that in GetSampleData() you are adding a record in GanttProject table with new GUID, but you do not update the value of ProjectDashboard_PlanningGlobal ‘s ProjectIDColumn column with this project id.
Please let me know if you have any further questions.
Hi Hristo and thanks for your reply.
I was not having the same ProjectID value between the 2 tables but I added it this way and it's still not working:
foreach (TestDataSet.ProjectDashboard_PlanningGlobalRow planifRow in _PlanningGlobalTable.Rows)
{
planifRow.ProjectID = ganttProjectRow.ProjectID.ToString();
dataSet.ProjectDashboard_PlanningGlobal.Rows.Add(planifRow.ItemArray);
}
By the way, I do have rows in my ProjectDashboard_PlanningGlobal table.
I attached a zip file containing an excel spreadsheet with the raw data (from an SQL Stored Procedure) that populated the ProjectDashboard_PlanningGlobal data table so you may find the problem in it.
Would you like to have any other screenshots, data or code samples to solve this problem?
As far as I can see you have a relation between GanttProject and ProjectDashboard_PlanningGlobal tables. So please assign the same data source to UltraGrid in order to see if the hierarchic structure could be created. If the grid displays correctly your hierarchic data, then the issue could be caused by the fact that you are assigning a ParentTaskMember, but I was not able to see if in your ProjectDashboard_PlanningGlobal you have such column. If you haven’t the Visual Studio will throws first chance exception, your sample will continue working but you will not see any of your tasks. So you could try to comment the following code line in order to display your task and to see if this is the reason for this:
ultraCalendarInfo.DataBindingsForTasks.ParentTaskIdMember = "GanttParentTaskID";
I hope that this will helps you.
Hi again Hristo,
I finally found the problem. It seems that I wasn't looking at the right place!
Nothing was displaying because I wasn't feeding the DataBindingsForTasks.DurationMember the right way.
In fact, this property needs a timespan but I was giving it an integer.
By setting a timespan column to this property, the Gantt displays!
Thanks for the help,