DlhSoft Gantt Chart Library (Windows® Forms) Documentation

Gantt Chart Library (Windows® Forms) contains client components such as GanttChartView and ResourceLoadChartView controls.

The GanttChartView control is used to display and update a list of task items using a grid view and an attached Gantt Chart.

The control requires setting the input item collection to manage through DataSource property.

The developer may control how the business logic is applied to the task items by setting or clearing values for data member identifying properties such as IndentLevelMember, StartMember, WorkMember, CompletedWorkMember, ResourcesMember, IsExpandedMember, and PredecessorsMember. The data columns that need to be presented in the task grid should be specified by adding DataGridViewColumn objects to the TasksTreeGrid.Columns collection, and the column that needs to be presented as a tree view in the task grid should be identified by setting its index value to TreeColumnIndex.

The custom task item type should provide properties similar to those listed below, and their names should be set to the appropriate data member identifying properties:

·         IndentLevel: The hierarchy is based on the indentation level values of the tasks, so that a task with a lower index in the collection and having a specific indentation level will become the parent task for the tasks with a higher index in the collection and having an increased indentation level;

·         Start, Work (effort), CompletedWork (completed effort);

·         Resources (assignments);

·         IsExpanded: If a parent task is expanded its child tasks become visible. If a parent task is collapsed its child tasks become invisible;

·         Predecessors.

Structure

The root assemblies and types that the library includes are listed below:

DlhSoft.ProjectDataControlLibrary assembly:

·         GanttChartView control (DlhSoft.ProjectDataControlLibrary namespace);

·         ResourceLoadChartView control (DlhSoft.ProjectDataControlLibrary namespace).

Get Started

To add references to the library assemblies within your solution project using Visual Studio®, please follow these steps:

·         Select your project in Solution Explorer;

·         Use the Add Reference command from the Project menu to open the Add Reference dialog window;

·         Locate and select the assemblies you want to reference within the .NET tab of the Add Reference dialog window;

·         Click OK to close the dialog window. The assemblies are referenced in your project.

To be able to specify the referenced type names in your main source code without any DlhSoft namespace prefix, make sure you also include using or Imports directives for the appropriate namespaces in each of the referencing source code files.

To add the library Windows® Forms controls as reference shortcuts in a Toolbox group within Visual Studio®, and to create control instances in the Windows® Forms user interface designer using the Toolbox, please follow these steps:

·         Open the Windows® Forms user interface designer for a form that you want to add controls to;

·         Open the Toolbox and display its context menu;

·         Use the Add Tab command from the context menu to create a new group, such as DlhSoft, if the group you want to add the controls to doesn't already exist;

·         Select the tab you want to add the Windows® Forms controls to and display its context menu;

·         Use the Choose Items command from the context menu to open the Choose Toolbox Items dialog window;

·         Locate and select the controls you want to add within the .NET Framework Components tab of the Choose Toolbox Items dialog window;

·         Click OK to close the dialog window. The controls are added to your Toolbox group;

·         Double click a control reference shortcut icon from the Toolbox group to create an instance of that control within your form that is open in the Windows® Forms user interface designer.