Back to Devexpress

TdxGanttControlResource.Group Property

vcl-dxganttcontrolresources-dot-tdxganttcontrolresource-383b26a1.md

latest1.3 KB
Original Source

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:

delphi
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;
cpp
{
  for (int I = 0; I < dxGanttControl1->DataModel->Resources->Count; I++) {
        TdxGanttControlResource *AResource = dxGanttControl1->DataModel->Resources->Items[I];
        if (AResource->Group == "Group 1")
          AResource->Blank = true;
    }
}

See Also

TdxGanttControlResource Class

TdxGanttControlResource Members

dxGanttControlResources Unit