Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6828435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:22:57+00:00 2026-05-26T22:22:57+00:00

I was experimenting with list view groups, and it turns out the control displays

  • 0

I was experimenting with list view groups, and it turns out the control displays incorrectly when the application starts.

Original form

As soon as I resize the form it displays correctly:

Resized form

I do not understand what is happening. Can anyone explain?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T22:22:57+00:00Added an answer on May 26, 2026 at 10:22 pm

    It’s a bug in the Delphi control which I have reproduced. I’m not sure yet what causes the bug. I have submitted this to Quality Central as QC#101104.

    I found a simple workaround by adding the following code to the form’s OnShow event.

    ListView1.Align := alNone;
    ListView1.Align := alClient;
    

    The following DFM file is enough to demonstrate the problem:

    object MyForm: TMyForm
      Left = 0
      Top = 0
      ClientHeight = 300
      ClientWidth = 635
      object ListView1: TListView
        Left = 200
        Top = 96
        Width = 250
        Height = 150
        Align = alClient
        Columns = <
          item
            Caption = 'Column'
          end>
        Groups = <
          item
            Header = 'Group header'
            GroupID = 0
          end>
        Items.ItemData = {
          052A0000000100000000000000FFFFFFFFFFFFFFFF0000000000000000000000
          000854006800650020006900740065006D00}
        GroupView = True
        ViewStyle = vsReport
      end
    end
    

    It turns out that another way to resolve the problem is to move the ViewStyle entry in the DFM file so that it appears before the Items entry. So yet another workaround for the problem would be to add the items at runtime. In fact this probably explains why this bug has not been found since I bet that the overwhelming majority of list view code adds the items at runtime.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm experimenting with Linq and am having trouble figuring out grouping. I've gone through
I'm experimenting with OpenSSL on my network application and I want to test if
I'm new to Android application development and I'm currently experimenting with various UI ideas.
I'm new to python and experimenting a bit but having trouble making a list
I'm currently experimenting with extension methods. My goal is a extension method for List
been experimenting with unordered list UL and i have seem varios examples of using
I am experimenting with owner drawn list box. I am adding a text box
I have a linked list implementation and I'm experimenting with both MergeSort and QuickSort
I've been experimenting with ScraperWiki and yesterday, I could get a list of all
I'm experimenting with destructuring-bind as follows: (destructuring-bind (a b) '(1 2) (list a b)))

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.