|
|
|
start date: Fri, 6 Jul 2007 09:28:00 -0700,
posted on: microsoft.public.dotnet.framework.adonet
back
| Thread Index |
|
1
Dave T
|
|
2
Milosz Skalecki [MCAD]
|
Data Table Row (.net 2)
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?
Date:Fri, 6 Jul 2007 09:28:00 -0700
Author:
|
RE: Data Table Row (.net 2)
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
--
Milosz
"Dave T" wrote:
> 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?
Date:Sun, 8 Jul 2007 04:16:00 -0700
Author:
|
|
|