Results 1 to 2 of 2

Thread: SelectedValue returning an error..

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2004
    Posts
    30

    SelectedValue returning an error..

    I'll try to be breif with my problem,

    I have a database with about 90,000 records. I created a search function which brings the results back in a simple list box.

    It displays the data perfect using the DisplayMember property, however I get an error everytime I pass data to SelectedValue (value being the id field which is between 1-90,000). I thought maybe it was a problem with the column but when I pass the same column into the displayMembers (just to test it) it shows up fine.

    I really do not know whats wrong, and I have spent hours trying to figure this out (guessing the answer is obvious and right under my nose)

    Hopefully someone can help me understand whats going on, or whats not.

    Thanks in advance..

    PS ...the error being that SelectedValue can not be a null value.

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    What did you set the ValueMember property to? Is it the fieldname of the value you are trying to set?

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