Results 1 to 2 of 2

Thread: Has listview displaymember or valuemeber property ?

  1. #1

    Thread Starter
    Fanatic Member manhit45's Avatar
    Join Date
    May 2009
    Location
    Ha noi - Viet Nam
    Posts
    826

    Has listview displaymember or valuemeber property ?

    Ok. I want a listview has above properties. Is it possible ?
    In fact i have a database which have a field is image ( binary array)
    I want a listview displaymember is name and value member is image.
    --***----------***-----

    If i help you please rate me.

    Working with Excel * Working with String * Working with Database * Working with array *

    K51 ĐH BÁCH KHOA HÀ NỘI - Khoa CNTT pro.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: Has listview displaymember or valuemeber property ?

    The ListView control doesn't support data-binding. It has no DataSource property, so of course it has no DisplayMember or ValueMember. You should either use a DataGridView, or else use the ExrendedListView control from here.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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