你只需要做如下设置就可以满足左右同步。- private void c1GanttView1_Load(object sender, EventArgs e)
- {
- Task task = new Task();
- task.Start = DateTime.Now;
- task.Finish = DateTime.Now.AddDays(3.0);
- task.Mode = TaskMode.Manual;
- this.c1GanttView1.Tasks.Clear();
- this.c1GanttView1.Tasks.Add(task);
- TaskPropertyColumn startCol = this.c1GanttView1.Columns.Search(TaskProperty.Start);
- TaskPropertyColumn finishCol = this.c1GanttView1.Columns.Search(TaskProperty.Finish);
- startCol.Visible = true;
- finishCol.Visible = true;
- }
复制代码 |