Solved

How to make invert selection in Listview

Posted on 2000-04-08
3
364 Views
Last Modified: 2010-04-04
How to make invert selection in listview? just like the invert selection
function in windows explorer?

Rgds

Shekou
0
Comment
Question by:shekou
  • 2
3 Comments
 
LVL 27

Accepted Solution

by:
kretzschmar earned 100 total points
ID: 2696026
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
 

Author Comment

by:shekou
ID: 2697269
Thanks, it works fine.

Shekou
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 2697438
hi shekou,

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

meikl ;-)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now