本帖最后由 86971375 于 2022-9-27 09:37 编辑
这样处理后,展开,折叠功能错误,
var flex = GanttView1.Controls[2] as C1.Win.C1FlexGrid.C1FlexGrid;
for (int row = 0; row < flex.Rows.Count; ++row)
{
var dataSource = flex.Rows[row].DataSource;
//if (dataSource != null && dataSource.GetType().FullName.Equals("C1.Win.C1GanttView.GroupTask"))
if (dataSource != null)
{
var task = dataSource as C1.Win.C1GanttView.BaseTask;
task.IsCollapsed = IsCollapsed;
}
}
|