Copyright Accelerated Ideas 2007 Legacy Blog Posts | Blog Home | .NET Components

AITaskList – How can I add an item at a specific position?


1/2/2007

First we create a new AITaskItem object:

aiTaskItem aItem = new aiTaskItem();


Now, let’s set some of the AITaskItem details:

aItem.Title = “New Item”;
aItem.Description = “This is a new item test”;
aItem.Expanded = false;
aItem.StyleType = aiTaskItem.AIStyleTypes._XP;


Next, we can use the AddTaskItem method specifying both the AITaskItem to add and the new position (in this case 2):

aiTaskList1.AddTaskItem(aItem, 2);


For more information on the features of AITaskList refer to the readme.htm file included in the download.


< Blog Home