Hi, I am trying to automaticaly save task to database when user change something in gantt's grid ? Everything is working fine when I add or delete task, because there are functions for that. I couldn't find any function which triggers on task data change, except Ultra Calendar Info changed. Any suggestion ?
Just to mention, I found one big error. If I click on the cell, and while the cell is in edit mode, I click on any other row, program crushes without explanation. It triggers CellDeactivating, it enters Save function, it saves everything, but just after exit Save function it crashes. I found that the error is caused by dsTask.AcceptChanges(), if I remove this, it's working ok. Very strange...
Thanks for the feedback.
Regards
That's it. I used CellDeactivating and TaskElementDragComplete, and those two functions saves every change I make to ultra gantt view. But I really think you should add a function which triggers on task change, just to be easier to work with gantt control. Anyway, it's working fine. Thanks a lot for your help...
Hello Divac,
Maybe one possible approach could be if you handle ultraGanttView1_CellDeactivating() event and include there your code for database update. For example:
private void ultraGanttView1_CellDeactivating(object sender, Infragistics.Win.UltraWinGanttView.CellDeactivatingEventArgs e)
{
dbTasksTableAdapter1.Update(testDataSet);
}
This event will fired after cell exit edit mode and all changes will be save in the DB. Please let me know if you think that I misunderstood your scenario or if you have any questions