Hi,
is there a way to bind a textbox in such a way so that its text is a
concatination of two fields from a dataset?
To be more specific, I need to have a textbox with Full Name, but in
the database I have a field for First Name and a field for Last Name.
Thanks in advance,
Lefteris
Radenko Zec - 05 May 2006 10:03 GMT
You can easily to acompish this in T-SQl select statement Select (FirstName
+ LastName) as FullName.
Or idea that cross my mind
textBox1.text=textBox1.text+''+@parameter
> Hi,
>
[quoted text clipped - 7 lines]
>
> Lefteris
Lefteris Kororos - 05 May 2006 11:27 GMT
Thanks Radenko,
I used the (FirstName+ " " +Lastname) as FullName and that worked
smoothly.
JT - 12 May 2006 04:14 GMT
Another thought...
You could define an expression datacolumn in your dataTable that
concatenates first and last name, and bind your textbox to that.

Signature
John
> Thanks Radenko,
>
> I used the (FirstName+ " " +Lastname) as FullName and that worked
> smoothly.
Lefteris Kororos - 13 May 2006 19:19 GMT
Hi John,
yes that seems to work too.
Thanks,
Lefteris