tlistview Questions
4
In Delphi XE7, I use this trick to automatically enable or disable a toolbar button ("Edit ListView Item") according to whether an item in the ListView is selected or not, to prevent the user to cl...
Durgy asked 1/3, 2015 at 10:57
3
Solved
I want to auto-size all the columns in the TListView. I am using below code, but its not doing any thing.
ListView1.Columns.Add.Caption := 'Field Name';
ListView1.Columns.Items[0].Autosize := True...
Thyestes asked 3/12, 2010 at 12:15
4
Solved
I have a TListView in a form and I would like to know the index of the selected item. I tried to find a method or a property of my TListView which gives that information but the only thing I found ...
2
Solved
So basically when a user clicks on the checkbox, I want to add that item in my list, I have tried using the OnChange event but this is not working for me as it gets fired even when the Checkbox is ...
Bohr asked 15/8, 2017 at 12:33
3
How do I save a Tlistviews layout in Delphi 2007?
I have been asked to write some code to allow users to re-order columns in a TListview (well all TListviews in our application), I have the code w...
2
Solved
It might seem like a silly & simple question, and yet, I've been unable to find a satisfying answer. Basically, I have a TListview (style = vsReport) with data. Sometimes, I have to update it, ...
1
Solved
Delphi XE4 Update 1 and Windows 8.
When I add groups and items to the list view, they are displayed properly. When I then clear the items and groups, and add them again, nothing appears. Surely th...
1
Solved
I need to enable or disable a button depending on whether at least a row is selected in the list or not.
Below is the code to reproduce this issue. The list is populated using the OnData event and...
Additory asked 7/3, 2014 at 2:42
0
I'm using TListView in my form (which inherits from TCustomListView) and when I change ListView style to "vsSmallIcon" the icons gets badly arranged. We found this issue ever since we ported our Co...
Wordless asked 16/9, 2013 at 2:0
3
Solved
I need to draw a checkbox in a particular column in aTListView, so i check this question How can I setup TListView with CheckBoxes in only certain columns? and in the accepted answer suggest use th...
1
Solved
I am using listview in vsreport virtual mode, have two columns and after I populate the list, select one row, and then select some other row there's an artifact left on a previously selected row, s...
Diarrhoea asked 18/3, 2013 at 21:18
3
Solved
When I use a TListView (ViewStyle = vsReport) I can autofit the width of the columns setting the LVSCW_AUTOSIZE or LVSCW_AUTOSIZE_USEHEADER values in the Width property of each column, now I start ...
1
Solved
I use Delphi 2007. I have a TListView with OwnerData and OwnerDraw set to True. ViewStyle is set to vsReport.
I have a record.
type TAList=record
Item:Integer;
SubItem1:String;
SubItem2:String;
...
Trichology asked 8/12, 2012 at 1:10
2
Solved
If you use ownerdraw with a TListView, the subitems are all BOLD font style by default somehow, even if the listview font.style is set to [], for all the SubItems following a custom drawn one.
A w...
Mummify asked 21/11, 2012 at 3:11
1
I'm trying to implement an "Arrange by" feature for a TListView in Delphi XE2. In the form designer (if I turn off OwnerData) I can get groups to show up and add items to them
However, if I try se...
Tirewoman asked 19/4, 2012 at 15:13
1
Solved
I'm trying to trigger an event after resizing a column in a TListView set to ViewStyle = vsReport.
Specifically I have two ListViews which I want to keep the columns the same width. Only one listV...
Cathar asked 2/2, 2012 at 16:33
1
I have a TListView (in report mode) that I'm using in virtual mode (OwnerData := True). All works well except for the two situations that I know of that autosize columns automatically. They are:
...
2
Solved
Why am I getting this error, I replaced a stringgrid with a listview, I then set it to viewstyle vsreport but I am getting an error like (expected '=' but '(' found) its flashing on this procedure ...
Underachieve asked 6/1, 2012 at 2:59
1
Solved
I'm trying to add a column between existing columns in a TListView. Therefor I add the new column at the end and move it by setting it`s index to the designated value. This works, until adding anot...
1
Solved
Firstly is this possible?
I have two issues - the fist is that I cannot get the groups to appear in the TListView when creating at run time. I'm using the following code:
lg := lvResults.Groups.A...
Footway asked 23/6, 2011 at 10:5
1
Solved
How to sort in tlistview with data present in subitem[x]?
1
© 2022 - 2024 — McMap. All rights reserved.