Log On
Embarcadero Home
Watch, Follow, &
Connect with Us
Share This
QualityCentral
Communities
Articles
Blogs
Resources
Downloads
Help
QualityCentral
Delphi-BCB
VCL
Win 32 Controls
TAnimate
TComboBoxEx
TCoolBar
TDateTimePicker
THeaderControl
THotKey
TImageList
TListView
TMonthCalendar
TPageControl
TPageScroller
TProgressBar
TRichEdit
TStatusBar
TTabControl
TToolBar
TTrackBar
TTreeView
TUpDown
You are not logged in.
Help
Print
Public Report
Report From:
Delphi-BCB/VCL/Win 32 Controls/TListView
[ Add a report in this area ]
Report #:
105680
Status:
Open
Incorrect behavior of Columns.Delete(n) and Index changing
Project:
Delphi
Build #:
16.0.4429.46931
Version:
16.4
Submitted By:
Denis Kepeschuk
Report Type:
Basic functionality failure
Date Reported:
5/17/2012 10:18:13 AM
Severity:
Serious / Highly visible problem
Last Updated:
5/18/2012 5:40:21 AM
Platform:
All versions
Internal Tracking #:
28312
Resolution:
None
(Resolution Comments)
Resolved in Build:
:
None
Duplicate of:
None
Voting and Rating
Overall Rating:
(1 Total Rating)
4.00 out of 5
Total Votes:
44
Description
There is a problem with deleting and moving TListView's columns (ViewStyle = vsReport).
I have added an attachment with sample project, that shows an issue.
Steps to Reproduce:
Create 3 columns and fill the TListView (at Form.OnCreate, for example):
ListView1.Columns.Add.Caption := 'col 1';
ListView1.Columns.Add.Caption := 'col 2';
ListView1.Columns.Add.Caption := 'col 3';
ListView1.AddItem('cell 1', nil);
ListView1.Items[0].SubItems.Add('cell 2');
ListView1.Items[0].SubItems.Add('cell 3');
Bug #1:
Try to delete 2nd column (with index = 1):
ListView1.Columns.Delete(1);
Bug #2:
Try to move 2nd column (with index = 1) to the 3rd position (with index = 2):
ListView1.Columns[1].Index := 2;
Workarounds
None
Attachment
ListViewTest.zip
Comments
Tomohiro Takahashi at 5/17/2012 7:42:23 PM
-
I deleted QC#105678, 105679. Please do not post same reports.
Denis Kepeschuk at 5/17/2012 8:30:25 PM
-
I apologize, this is because I tried to attach sample project and attachment didn't work.
Tomohiro Takahashi at 5/17/2012 8:03:14 PM
-
Could you please attach sample project to reproduce/confirm your issue?
Note:
Please use Windows Native QC Client to attach a .zip file to your existing report. The standalone client comes with Delphi.
Denis Kepeschuk at 5/17/2012 8:29:48 PM
-
I have added an attachment with sample project, that shows an issue.
Tomohiro Takahashi at 5/18/2012 9:27:07 PM
-
This report was opened with valid Internal Tracking Number.
Thanks.
Denis Kepeschuk at 5/19/2012 9:12:34 AM
-
Thank you!
I'm looking forward for the workaround! We're trying to fix this issue by ourselves, but still with no success.
Sertac Akyuz at 9/20/2012 7:32:25 PM
-
For your second bug, you can call ' ListView1.UpdateItems(0,MaxInt);' after you move the column.
Christian Ternes at 4/28/2013 11:50:08 PM
-
almost a year without progress?
Tomohiro Takahashi at 4/29/2013 6:34:37 PM
-
Unfortunately, this issue is still Open.
View Your Reports
Search
Server Response from: ETNACODE01
Developer Tools
Blackfish SQL
C++Builder
Delphi
FireMonkey
Prism
InterBase
JBuilder
J Optimizer
HTML5 Builder
3rdRail & TurboRuby
Database Tools
Change Manager
DBArtisan
DB Optimizer
ER/Studio
Performance Center
Rapid SQL
Technical Articles
Tutorials
White Papers
Press Releases
Newsletters
Add Content (GetPublished)
Audio
Audio & Video
Video
Bugs & Suggestions (QualityCentral)
Discussion Forums
Examples (CodeCentral)
Tags
Technology Partners
Downloads
Free Trials
Registered User Downloads
Beta Programs
Add Content (GetPublished)
Articles
Blogs
Bugs & Suggestions (QualityCentral)
Discussion Forums
Examples (CodeCentral)
Member Services
About
Connect with Us