Computed Field In Typed Dataset

Discussion in 'ASP .Net' started by =?Utf-8?B?RGF2ZSBU?=, Jul 16, 2007.

  1. I have a list box that is bound to an object data source. I added a column,
    say ColumnC, to my typed data set (using the designer) and for the expression
    property I entered

    ColumnA + ': ' + ColumnB

    When I preview the data in the designer I get exactly what I want.

    Now I go over to the object data source on my web page, refresh it and
    refresh the schema. I can now see ColumnC as an option for the list box's
    data text field. However, when I run the page nothing shows up in the list
    box. However, when I view the page source, I see that the data value field
    did render.

    Next I put in a value (instead of the default DBNull) for the DefaultValue
    property. After going through the whole exercise of refreshing and such
    again, I run the page and the default value I put in is returned in the list
    box.

    Does anyone know what I missed? It must be something stupid.

    Thanks ...
     
    =?Utf-8?B?RGF2ZSBU?=, Jul 16, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Nedu N
    Replies:
    1
    Views:
    1,839
    Chris Taylor
    Oct 31, 2003
  2. Nedu N
    Replies:
    2
    Views:
    2,208
  3. William Gower
    Replies:
    2
    Views:
    4,196
    Brian Baker [MVP]
    Jul 26, 2004
  4. thomson
    Replies:
    2
    Views:
    14,876
    Eliyahu Goldin
    Jan 19, 2005
  5. Nedu N
    Replies:
    2
    Views:
    243
    Jacob Yang [MSFT]
    Oct 31, 2003
Loading...

Share This Page