View Single Post
  #7 (permalink)  
Old May 11th, 2004, 03:42 PM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 71,164, Level: 100
Points: 71,164, Level: 100 Points: 71,164, Level: 100 Points: 71,164, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,948
Thanks: 79
Thanked 1,555 Times in 1,532 Posts
Default

This is really weird.

I tried it with "simple objects", an array of Integers and bound it to the Combo. Worked fine.
Then I bound the combo to a DataTable. set the ValueMember to a Guid in the table, and the DisplayMember to a varchar. Even then, the FindStringExact method worked fine.

How do you bind your data to the combo? What type is the datasource? And are you sure exact is really exact? That is, no spaces or other trimming issues are messing with your head? ;)

If this doesn't help, I suggest you uncheck "Produce Random Errors" on the properties dialog for the project.... ;)

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: All Mine by Portishead (Track 2 from the album: Portishead) What's This?
Reply With Quote