• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 382
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

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