Results 1 to 4 of 4

Thread: [RESOLVED] edit directly in List view, is it possible?

  1. #1

    Thread Starter
    New Member eTiger's Avatar
    Join Date
    Feb 2008
    Posts
    5

    Resolved [RESOLVED] edit directly in List view, is it possible?

    VB6
    I wonder if one can edit directly in the list view.
    After it's been filled with data, I would like to chose any field in any collumn to edit, then hit a save button to update the data base.

    (Been searching the forum and all I could find was like temp storage in textboxes, If its posible I would like to skip that extra procedure.)

    As it is now only the first column seems to be editable...
    /eTiger

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: edit directly in List view, is it possible?

    Quote Originally Posted by eTiger
    (Been searching the forum and all I could find was like temp storage in textboxes, If its posible I would like to skip that extra procedure.)
    If it were possible to skip the extra procedure, no one would be using the textboxes.

  3. #3
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: edit directly in List view, is it possible?

    Here's the thing..... the ListView was never meant to be an editor... it is a ListVIEW.... not a grid... It is possible.... but it is a real pain and prone to problems. Your best bet would be to have the list view, and when the user clicks on an item, it loads the data into another part of the screen, where it can be edited.

    Think of it like this: File Explorer is a ListView.... only the first column can be edited (the filename)... none of the other cols can be changed. If you need something beyond that, either change the concept, or use a different control.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  4. #4

    Thread Starter
    New Member eTiger's Avatar
    Join Date
    Feb 2008
    Posts
    5

    Re: edit directly in List view, is it possible?

    OK, now I'm trying to fix my way around with MSHFlexGrid instead.

    I now work with si_the_geek's thread:
    http://www.vbforums.com/showpost.php?p=2326509&postcount=16

    Wich is really good.
    Thanx
    /eTiger

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width