Editable ListView

This is a discussion on Editable ListView within the Windows Programming forums, part of the Platform Specific Boards category; I'm doing a list view (more specifically a report view). I've added several columns to it using LVM_INSERTCOLUMN. I'm also ...

  1. #1
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145

    Editable ListView

    I'm doing a list view (more specifically a report view). I've added several columns to it using LVM_INSERTCOLUMN. I'm also able to add items to it using LVM_INSERTITEM and use LVM_SETITEMTEXT to change each item's column values.

    Using the state flag LVS_EDITLABELS you make the first column (the item name) editable and the rest not. however, I want the opposite: Noneditable first column and the rest of the columns editable. By editable I mean that the user can click in the field and enter a new value (string).

    How can this be done?
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,702
    If you're using MFC, its not too hard. Here's how.

    If your're using straight up Win32, that article should still give you an idea how to do it.

    gg

  3. #3
    Magically delicious LuckY's Avatar
    Join Date
    Oct 2001
    Posts
    856
    Try this
    or this

    [edit]
    Oh, nm. codeplug beat me to the draw. ; )

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. ListView Refresh, Update
    By de4th in forum C++ Programming
    Replies: 1
    Last Post: 12-23-2006, 09:13 AM
  2. Replies: 6
    Last Post: 07-10-2006, 01:05 AM
  3. Troubles with ListView and Toolbar
    By cornholio in forum Windows Programming
    Replies: 8
    Last Post: 11-14-2005, 01:26 AM
  4. Listview with c/c++
    By X PaYnE X in forum Windows Programming
    Replies: 8
    Last Post: 03-20-2005, 11:29 PM
  5. Listview??
    By SuperNewbie in forum C# Programming
    Replies: 4
    Last Post: 02-13-2003, 03:34 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21