My question: Is it possible to detect a special task bei doubleclicking on it in the timeline area?
I want to display further informations of the clicked task and therefore I need some code for exact detecting this task
thanx Thomas
Thank you very much!
Sorry, I forgat that you needed to differentiate between the grid and timeline area. TaskFromPoint is overloaded to take an out parameter of type TaskUIElement; if you use that overload and you get something back in that parameter, it is implied to be in the timeline area.
void ganttView_MouseDoubleClick(object sender, MouseEventArgs e){ UltraGanttView control = sender as UltraGanttView; Task taskAtPoint = control.TaskFromPoint( e.Location );
if ( taskAtPoint != null ) { // Do stuff }}