Results 1 to 8 of 8

Thread: combo box, 2 columns [*Resolved *]

Hybrid View

  1. #1
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489

    Re: combo box, 2 columns

    Quote Originally Posted by Hack
    Concantanate them using the & character.
    you can't use the & concat method in c#. you have to use +
    You really should be concating them at the database anyway...less load on your app . like this:
    Code:
    SELECT field1 + ' ' + field2 AS BothFields FROM TABLE
    then, when you bind (i'm assuming you're binding), bind to 'BothFields'


  2. #2

    Thread Starter
    Frenzied Member
    Join Date
    Dec 2001
    Posts
    1,331

    Re: combo box, 2 columns

    Thanks everyone,

    Problem solved.
    steve

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width