Recent

Author Topic: Listview and headercontrol  (Read 1398 times)

Arend041

  • New Member
  • *
  • Posts: 16
Listview and headercontrol
« on: April 06, 2022, 02:09:13 pm »
LS,
with a list view (TListview), in report mode, it is impossible to move tabs/columns horizontally.
A header control (THeaderControl) offers that possibility and is also easy to connect to a list view.
But how can I make the header control scroll horizontally with the list view?

Arend041

  • New Member
  • *
  • Posts: 16
Re: Listview and headercontrol
« Reply #1 on: April 17, 2022, 10:41:10 am »
Probably I have not worded my question correctly.
How can I synchronize the scroll position of the listview with the header sections.
When all the columns are visible, no link is needed, but when they are not all visible, it is necessary to have the header sections scroll with them.

wp

  • Hero Member
  • *****
  • Posts: 11854
Re: Listview and headercontrol
« Reply #2 on: April 17, 2022, 12:30:12 pm »
Whenever I tried to link a THeaderControl to a report-mode TListView I noticed that there is always an annoying delay between them. I think it is much better to use a TStringGrid instead of that combination. The TStringGrid can be set up to look almost like a report-mode TStringGrid.

Arend041

  • New Member
  • *
  • Posts: 16
Re: Listview and headercontrol
« Reply #3 on: April 18, 2022, 10:47:56 pm »
Too bad I'm being deprived of how to link the two components. A possible delay I take at face value. So be it.

Arend041

  • New Member
  • *
  • Posts: 16
Re: Listview and headercontrol
« Reply #4 on: May 20, 2022, 04:56:59 pm »
I've searched the internet but haven't found any code that links a HeaderControl to a ListView in report mode. Therefore another attempt to see if anyone here can help me further with some code.

ASerge

  • Hero Member
  • *****
  • Posts: 2222
Re: Listview and headercontrol
« Reply #5 on: May 21, 2022, 06:53:33 pm »
with a list view (TListview), in report mode, it is impossible to move tabs/columns horizontally.
ListView.FullDrag := True; enables drag-and-drop reordering of columns.

Arend041

  • New Member
  • *
  • Posts: 16
Re: Listview and headercontrol
« Reply #6 on: May 31, 2022, 12:38:39 pm »
Thanks a lot.

 

TinyPortal © 2005-2018