ListBox.ValueMember always returns "value"


Author
Message
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.8K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
I'm trying to use your ListBox control (winform) and when I access the ValueMember property, the value is always "value". I have it setup to CopyDataFrom() and have set the ValueMember in the PopulationDataSourceSettings. It is hitting a business object that is correctly populated. How do I get the current value for the selected item within the list?
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Greg McGuffey - 19 Years Ago
Trent L. Taylor - 19 Years Ago
Greg McGuffey - 19 Years Ago
Trent L. Taylor - 19 Years Ago
                     Oops. Sorry. Posted this reply to wrong topic!

However, on...
Greg McGuffey - 19 Years Ago
                         After looking at your sample a little closer, there is a workaround...
Trent L. Taylor - 19 Years Ago
                             Cool. I set RawText via code and it works! This is much more...
Greg McGuffey - 19 Years Ago
                                 Exactly...that is why we had not yet run into this :)
Trent L. Taylor - 19 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search