C1 Community
ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

c1combo (latest version) can't use number for valuemember

rated by 0 users
This post has 3 Replies | 1 Follower

Top 75 Contributor
Posts 78
paolohu Posted: Sat, Dec 23 2006 1:03 AM
if i use a number for the valuemember selectedvalue is always null.

if i have a datatable that looks like:

id description
---- ----------------
49 "this is item 1"
50 "this is item 2"

and i set valuemember to id then set SelectedValue = 49, SelectedValue returns null when queried.

if i have a datatable that looks like:

id description
---- ----------------
"49" "this is item 1"
"50" "this is item 2"

and to the same thing except set SelectedValue to "49" then everything works perfectly.
Top 10 Contributor
Posts 1,237
Hi,
 
This issue has already been escalated to the QA team and is being investigated.
 
Regards,
Allen
<paolohu> wrote in message news:190065@test.componentone.com...
if i use a number for the valuemember selectedvalue is always null.

if i have a datatable that looks like:

id description
---- ----------------
49 "this is item 1"
50 "this is item 2"

and i set valuemember to id then set SelectedValue = 49, SelectedValue returns null when queried.

if i have a datatable that looks like:

id description
---- ----------------
"49" "this is item 1"
"50" "this is item 2"

and to the same thing except set SelectedValue to "49" then everything works perfectly.

http://home.componentone.com/cs/forums/190065/ShowPost.aspx

Top 500 Contributor
Posts 24
liffey replied on Fri, Mar 9 2007 7:40 AM
Patrick,

Any update on this?

Not being able to use an int fieldas a selected value item is a major bug. I would have expected a solution by now.

This seems to be the same issue as I posted at http://helpcentral.componentone.com/cs/forums/191928/ShowPost.aspx

Declan
Top 75 Contributor
Posts 82
C1_JasonS replied on Mon, Mar 19 2007 11:04 AM

I can't reproduce the problem.

I'm using the access database "NWind.mdb", the table is "Products". I set the ValueMember to "ProductID" and DisplayMember to "ProductName", after setting the SelectedValue to 5, then the display text is the product name with ProductID=5. When I get the SelectedValue, the result is 5.

If possible, could you please attach a simple sample that can reproduct it?

Thanks a lot in advance.

-jason

Page 1 of 1 (4 items) | RSS
Contact ComponentOne: 1.800.858.2739 ©1987-2010 ComponentOne LLC All Rights Reserved.