|
-
May 27th, 2011, 11:40 AM
#1
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
-
May 27th, 2011, 11:45 AM
#2
Thread Starter
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|