Results 1 to 4 of 4

Thread: Need assistance loading objects into ListView

Hybrid View

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

    Re: Need assistance loading objects into ListView

    right... a list view display text... not objects... so you need to tell it what data elements of the object to use to display ... if you look at the documentation of the Items.Add method of a listview, you'll see that the parameter takes a STRING ... which is the text to display for that item... you're trying to pass to it an object.

    -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??? *

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Feb 2010
    Posts
    79

    Re: Need assistance loading objects into ListView

    You guys are awesome!

    Just for grins and giggles, I tried the following in the LoadSignaturesView function:
    [CODE]
    Do While dr.Read
    uxSignatureView.Items.Add(New Signature(CInt(dr("SignatureID")), CStr(dr("FullName")), CStr(dr("Title")), CStr(dr("Department")), CStr(dr("PhoneNumber")), CStr(dr("FaxNumber")), CStr(dr("RecAddedBy")), CDate(dr("RecAddedDate"))).ToString)
    Loop

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