Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxGanttControlResource.Group Property

Specifies the resource group’s name.

#Declaration

Delphi
property Group: string read; write;

#Property Value

Type
string

#Remarks

Use this property to group resources. The code example below shows how to hide resources that belong to the ‘Group 1’ group:

var
  I: Integer;
  AResource: TdxGanttControlResource;
begin
  for I := 0 to dxGanttControl1.DataModel.Resources.Count - 1 do
    begin
      AResource := dxGanttControl1.DataModel.Resources.Items[I];
        if AResource.Group = 'Group 1' then
          AResource.Blank := True;
    end;
end;
See Also