Skip to content

TeasyItem.Checktype per item not working #16

@ghost

Description

When using checkboxes and want to remove the checkbox of one item it doesn't remove or change it.

Example using (simpleproject):

procedure TForm1.AddItems(Count: Integer);
var
i: Integer;
Item: TEasyItem;
begin
// Add items to the listview. Actually the items are added to the first
// group. This group is created automatically when the first item is added.
LV.BeginUpdate;
try
for i := 0 to Count - 1 do
begin
Item := LV.Items.Add;
Item.Caption := 'Item ' + IntToStr(i); // this is the same as Item.Captions[0]
Item.Captions[1] := 'Detail ' + IntToStr(i);
Item.ImageIndex := i mod LV.ImagesSmall.Count;
Item.Details[0] := 0; // Use Report Column 0 for the first Tile View Detail
Item.Details[1] := 1; // Use Report Column 1 for the second Tile View Detail

  **if I = 4 then
    Item.CheckType := ectNoneWithSpace
  else
    Item.CheckType := ectBox;**

end;

finally
LV.EndUpdate;
end;
end;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions