in

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

Last post 03-19-2007 11:04 AM by C1_JasonS. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 12-23-2006 1:03 AM

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

    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.
  • 01-04-2007 5:26 AM In reply to

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

    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

  • 03-09-2007 7:40 AM In reply to

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

    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
  • 03-19-2007 11:04 AM In reply to

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

    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)
Contact ComponentOne: 1.800.858.2739 ©1987-2009 ComponentOne LLC All Rights Reserved.