I just started working with gantt view, so I have some questions
Can we include multiple projects in ultraGanttView?
I want to use a List as datasource, actually i am working like this
ultraCalendarInfoGanttView.DataBindingsForProjects.BindingContextControl = this; ultraCalendarInfoGanttView.DataBindingsForProjects.DataSource = new ProjectManager().GetProjects();ultraCalendarInfoGanttView.DataBindingsForTasks.BindingContextControl = this;ultraCalendarInfoGanttView.DataBindingsForTasks.DataSource = new TaskManager().GetTasks();
But I didn't get any data in view, please help me to figure out this.
HI,
Thanks for attached sample. Maybe you could used these events:
private void ultraGanttView1_TaskAdded(object sender, Infragistics.Win.UltraWinGanttView.TaskAddedEventArgs e) { dbTasksTableAdapter1.Update(testDataSet); } private void ultraGanttView1_TaskDeleted(object sender, Infragistics.Win.UltraWinGanttView.TaskDeletedEventArgs e) { dbTasksTableAdapter1.Update(testDataSet); }
private void ultraGanttView1_TaskAdded(object sender, Infragistics.Win.UltraWinGanttView.TaskAddedEventArgs e)
{
dbTasksTableAdapter1.Update(testDataSet);
}
private void ultraGanttView1_TaskDeleted(object sender, Infragistics.Win.UltraWinGanttView.TaskDeletedEventArgs e)
Let me know if you have any questions
Hi
I am attaching a sample.It is not exact but just like that
Could you please create a small sample with your scenario and upload it here ( in this forum thread ). I`ll be glad to reserach your scenario and I`lll try to provide you a solution.
Regards
I have tried this,I want to say if I delete a task than none of the event is raised and I call the update method on these event,so it is not reflected in database.
Something also, Scenario is that when task is added I want to initialize some columns with some values in data table only and don't want to show in tasks grid.
Hi,
Did you try to used these method below:
this.ultraCalendarInfo1.DataBindingsForTasks.RefreshData();
ultraGanttView1.Refresh()
Let me know if you have any questions.