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 324109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T09:05:37+00:00 2026-05-12T09:05:37+00:00

I used Listview.items.item[X].caption for changing the first column in a listbox,but now I have

  • 0

I used Listview.items.item[X].caption for changing the first column in a listbox,but now I have to change further at runtime.The only way I see is getting the item from listbox as TListItem ,editing it,add it and change position,but that doesn’t suit it,because I have many items on the listview.

Is there a simpler way to accomplish this ,like the way I change the first item?

Thanks in advance.

  • 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-12T09:05:37+00:00Added an answer on May 12, 2026 at 9:05 am

    try this

    //Add a item
    
    var
      ListItem : TListItem;
    begin
    
      ListViewItem.Items.BeginUpdate;
    try
        ListItem := ListViewItem.Items.Add;
        ListItem.Caption := 'First Column Value';
        ListItem.SubItems.Add('Second Column Value');
        ListItem.SubItems.Add('Third Column Value');
    finally  
    ListViewItem.Items.EndUpdate;
    end;
    
    end;
    
    //Edit a Item
    
    var
      ListItem : TListItem;
    begin
    
      ListViewItem.Items.BeginUpdate;
    try
        ListItem := Listview.items.item[X];
        ListItem.Caption := 'New first Column Value';
        ListItem.SubItems[0]:='New Second Column Value';
        ListItem.SubItems[1]:='New Third Column Value';
    finally  
    ListViewItem.Items.EndUpdate;
    end;
    
    end;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Listview that originally listed items from a menu item with one
I have a view which is used as an item in a ListView .
I've got a listbox from which I'm dragging into the ListView. Now I have
I have used ListView and bounded my custom ArrayAdapter to it. Have setOnItemClickListener(...) bound
I'm having a problem styling my ListBox selection background. I used ListView originally, it
I have used custom listview and custom rating bar. If I add that custom
I have a ListView template that's being used in several places and I'd like
I have a ListView-like control that displays a list of items of various heights.
I have a listview, which is used as an index to a simple search
I have a databound ListView in asp.Net. I have both ItemTemplate and SelectedItemTemplate used

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.