Hi Rit,
Unfortunately, you can't.
However, it's pretty easy to combine the columns in your select statement, alias them and then use that alias.
E.g.:
SELECT Field1 + Field2 AS NewColumn FROM Bla bla bla
And then use NewColumn for the DataValueFIeld:
<asp:DropDownList ID="DropDownList1" runat="server"
DataSourceID="SqlDBSrc" DataTextField="NAME" DataValueField="NewColumn" SelectedValue='<%# Bind("FIELD1ID") %>'>
If you post code in this forum, can you please add a line break here and there? Makes the page much easier to read and type replies in...
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|