Solved

Programatic Listview Column Click

Posted on 2007-11-21
1
545 Views
Last Modified: 2010-04-04
Hi,
Can anybody help me with programatically clicking on a Listview column heeader. I have a Listview with three columns - and I want to trigger a sort routine programatically on one of the columns

Thanks
Romans
0
Comment
Question by:Romans
1 Comment
 
LVL 14

Accepted Solution

by:
SteveBay earned 125 total points
ID: 20331700
Just call ListView1ColumnClick and pass the appropriate Column
procedure TForm1.Button1Click(Sender: TObject);
begin
	ListView1ColumnClick(Sender, ListView1.Columns[0]);
end;

Open in new window

0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Show Listview image from database (String field) 5 137
find a node in VST 2 73
Delphi IDE crash without error message ... 7 99
Tvertscrollbox like a whatsapp layout 5 34
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

829 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