Data Table Row (.net 2)

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

If I have a typed data set with columns ColumnA and ColumnB (both strings) in
a table, I was thinking that I could do something like this


Partial Public Class TheTDS

....

Partial Public Class TheDataTableRow

Private ReadOnly Property ConcatenatedColumn() As String
Get
Return ColumnA & ", " & ColumnB
End Get
End Property

End Class

End Class


Then I want to bind that property to, say, a web list box control. Of
course this doesn't work, but I want to believe that it is possible.

Does anyone know where I might find out how to accomplish this?
 
Hi Dave,

Add extra column to the table (right click on the table in dataset designer
view) and call it ConcatenatedColumn. In the expression field enter ColumnA +
', ' + ColumnB.
Should work.

Hope this helps
 

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

Back
Top