Hi guys, with code below , I select with programing some items
planner.BeginUpdate;
control:=0;
I:=0;
seleccion:=9;
while i<seleccion do
begin
if (cadena[i+1]='1') then
begin
SetLength(myArray,length(myArray)+1);
myArray[control] := i;
control:=control+1;
end;
i:=i+1;
end;
planner.SelectItems(myArray);
planner.EndUpdate;
How unselect an item with programing??
best regard
You can do:
Planner.Items[index].Selected := false;
Planner.Items[index].Focus := false;
thank you, These code not work for FireMonkey,
Hi,
We have added an UnselectItem that will be available in the next release, but you can also use
Planner.SelectedItems.Remove(Planner.Items[0]);
Planner.Items[0].UpdateItem;
Pieter Scheldeman2016-06-08 08:58:58
Thank you gays, it works