• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 377
  • Last Modified:

How to make invert selection in Listview

How to make invert selection in listview? just like the invert selection
function in windows explorer?

Rgds

Shekou
0
shekou
Asked:
shekou
  • 2
1 Solution
 
kretzschmarCommented:
hi shekou,

maybe this

procedure TForm1.Button1Click(Sender: TObject);
var I : Integer;
begin
  for i := 0 to listview1.Items.Count - 1 do
    listview1.Items[i].Selected := not listview1.Items[i].Selected;
end;


meikl
0
 
shekouAuthor Commented:
Thanks, it works fine.

Shekou
0
 
kretzschmarCommented:
hi shekou,

glad to helped you,
thanks for accepting my commant as answer,
good luck again

meikl ;-)
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now