I need to have a check box in a column header of a TListView:
I have tried the following code:
with CheckBox1 do
begin
Parent := ListView1;
Top := 0;
Left := 4;
end;
but the check box doesn't always work as expected. How can I properly create a check box in TListView header column ?
The following code will add the check box to the list view's header and shows how to handle the click event for it.
Please note, that the following code is supported since Windows Vista.