datagrid question

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

Guest

I woul like to put the results of two SQLColumns into one datagrid column
Works fine with databinder.eval in a templatecolumn, but I would like to
avoid that...
 
How about putting the two columns together from within the sql query,
would that meet your needs?
 
In your SQL statement, multiple fields can be concatenated together with the
+ symbol and then assigned an alias that can be used as the data source for
your grid column, see SQL Server Books on line for the details. You may want
to include additional spaces or formatting also, for example,
dbo.SpmPeople.LastName + ', ' + dbo.SpmPeople.FirstName AS MemberName
 

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