DataRowView Question

R

Roshawn

Hi,

I am binding to a DataRowView object which contains approximately one row.
However, one of the columns of the row contains an array of author names. I
bind to it like this:

Me.lblAuthors.Text = row("Authors") 'row being the DataRowView object

When I run the code, I get no errors but the authors are not shown as
expected. The output is System.String[] for the label's text property.
I'd like the author names to be listed and separated by commas.

How do I properly bind to the array of authors using the DataRowView object?
Must I do some type of string conversion or something?

Thanks,
Roshawn
 
W

William Ryan eMVP

Hi Rowshawn:

From the looks of it, I might need some clarificatino on the methodology -
is Row a specific row that doesn't change or is there navigatino ability
somewhere? Typically you'd use textBox1.DataBindings.Add("Text", dataView,
"ColumnName")
but i'm guessing you need functionality. Would you mind telling me a
little more about what you're after and i'll see what i can do.

Cheers,

Bill

--

W.G. Ryan, eMVP

Have an opinion on the effectiveness of Microsoft Embedded newsgroups?
Let Microsoft know!
https://www.windowsembeddedeval.com/community/newsgroups
 
R

Roshawn

Hi Bill,

Sorry for taking so long to respond, but I've been doing other things.

Back to the problem at hand. I'm developing a Web application that retrieve
it data from a web service and caches it. On one page I have a Repeater
control that is bound to a DataView object. The items in the Repeater are
clickable. When an item is clicked, the item's ID is passed in the
QueryString to another page. This page, lets say Results.aspx, is bound to
a DataRowView object. All of the bindings work on this page, except the
fact that one row contains an array of authors' names and aren't properly
displayed on the page.

This is my trouble. I'm trying to list the authors names from the array but
to no avail. I think that I should mention that I'm using the Amazon Web
Service (AWS).

HTH,
Roshawn
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top