all groups > dotnet windows forms databinding > june 2005 >
You're in the

dotnet windows forms databinding

group:

DataSet and DataViews


DataSet and DataViews eXtreme
6/29/2005 3:26:01 PM
dotnet windows forms databinding: Is it possible to create a dataview on a dataset which combines
(concatonates) two columns into one without having to copy the dataset into
another dataset?

I have two columns that I generally need to be seperate... but I have a need
to databind this dataset to a combo box and display a concatonated version
of the two columns in the GUI... is there a way to do this with a databound
combobox to a dataset?

Thanks,
Extreme

Re: DataSet and DataViews eXtreme
6/29/2005 8:47:45 PM
Found the answer:

Dim dc As DataColumn
dc = New DataColumn("FullName",GetType(System.String))
dc.Expression = "FirstName + ':' +LastName"
dataSet.Tables("customers").Columns.Add(dc).


[quoted text, click to view]

AddThis Social Bookmark Button