PC Review


Reply
Thread Tools Rate Thread

Computed Field In Typed Dataset

 
 
=?Utf-8?B?RGF2ZSBU?=
Guest
Posts: n/a
 
      16th Jul 2007
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 ...
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Computed Field In Typed Dataset =?Utf-8?B?RGF2ZSBU?= Microsoft ASP .NET 0 16th Jul 2007 09:16 PM
Re: Typed dataset: Time only data in SQL dateTime Field Stephany Young Microsoft ADO .NET 5 23rd Jan 2007 12:55 AM
RE: Typed dataset: Time only data in SQL dateTime Field WenYuan Wang Microsoft ADO .NET 4 22nd Jan 2007 06:04 PM
Re: Typed dataset: Time only data in SQL dateTime Field Miha Markic [MVP C#] Microsoft ADO .NET 0 19th Jan 2007 08:19 AM
Typed DataSet, GridView and Computed Column =?Utf-8?B?bWlyY28=?= Microsoft C# .NET 0 30th Jun 2006 11:29 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:37 PM.