10402 : I have integers in a column, I must sort them as numbers not strings

…as GridNode).GetCell(fColumn.Index).Content.Value.ToString());         if (x is GridNode)           xint=int.Parse((x as GridNode).GetCell(fColumn.Index).Content.Value.ToString());                if (fdescending)           return xint-yint;         else           return yint-xint;       }       #endregion            }… Continue reading

10262 : I want to add a new time item by Mouse clicking and dragging. How-To ?

…{ if (e.TimeItem.Stop>e.TimeItem.Start.AddHours(8)) { // If the time item created was of considerable length… TaskTime taskTime=new TaskTime(projPlannerMain.EcoSpace); object x=(e.TimeItem.GanttRow.GridNode.ListItemWhenDataBound() as RenderedTuple).Element.AsObject; taskTime.OwningTask=(x as Task); taskTime.Start=e.TimeItem.Start; taskTime.Stop=e.TimeItem.Stop; } e.TimeItem.Layer.Remove(e.TimeItem); gantt1.EnterTimeItemCreateMode(false,null,0); }… Continue reading

10313 : I have Start and Stop date values in the grid that I want to update when a time item changes.

…TimeItemsNode.GetCell(3).Content.Value = e.TimeItem.Stop.Add(e.Diff);                 }                 if (MainGantt.MouseMoveKind == MouseMoveKind.resizew || MainGantt.MouseMoveKind == MouseMoveKind.move)                 {                     TimeItemsNode.GetCell(2).Content.Value = e.TimeItem.Start.Add(e.Diff);                 }                                 }             }         } So what… Continue reading

10152 : user sees 2 timeitems on the screen and wants to link them using mouse and clicking on one timeitem and dragging link to the other timeitem. how shuld I do this?

… ti.TimeItemLayout.AllowMove = false;     this.gantt1.EnterLinkCreateMode(true);     }     else if (e.x >= ti.DrawRect().Left+4 && e.x <= ti.DrawRect().Left+15)     {      ti.TimeItemLayout.AllowMove = false;      this.gantt1.EnterLinkCreateMode(true);     }     else     {      ti.TimeItemLayout.AllowMove = true;      this.gantt1.EnterLinkCreateMode(false);     }    }   }  … Continue reading