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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T00:48:32+00:00 2026-06-05T00:48:32+00:00

If I try ListView1.items[0].EditCaption; it works as expected allowing me to edit the first

  • 0

If I try

ListView1.items[0].EditCaption;

it works as expected allowing me to edit the first items caption, however if while editing I try

ListView1.items[0].CancelEdit;

It does not cancel the editing. Is there some concept I’m missing, is it a bug, or is the help wrong?

This seems to be a problem in Delphi 2007 and XE2 (and probably others).

  • 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-06-05T00:48:34+00:00Added an answer on June 5, 2026 at 12:48 am

    I think this is a problem with the native control, the VCL does as documented (calls ListView_EditLabel(Handle, -1);), but to no effect. According to the documentation of ListView_GetEditControl, sending the list view a WM_CANCELMODE should also work, which it doesn’t.

    A test here shows the below works,

    winapi.windows.SetFocus(ListView1.Handle);
    

    interestingly ListView1.SetFocus doesn’t.

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

Sidebar

Related Questions

I try to add a row to a listView listView1.Items.AddRange(new ListViewItem[] { item1 });
I try to get first character occurrence in text keeping their original order. I
I try to do simplest listView. I create layout: <TextView xmlns:android=http://schemas.android.com/apk/res/android android:id=@+id/history_menu_item android:layout_width=wrap_content android:layout_height=match_parent
I try to write get method for my class bassed on ListView, I want
I implemented a ListView using ArrayAdapter. Each listItem (row) contains EditText. When I try
Try to change submodule as described in git book $ git rm -r vendor/html-minifier
Try this: $test = array (2+2); var_dump($test); Then try the same but inside a
try { using (MapDataContainer ent = new MapDataContainer()) //is an autogen'd EF object {
try { this.Invoke((MethodInvoker)delegate { Uri uri = new Uri(mywebpage.com); NetworkCredential credentials = new NetworkCredential(username,
Try to use npm install libxml and an error : Failed at the libxml@0.0.5

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.