ComboBox question - display more than one field

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • gsb58@hotmail.com

    ComboBox question - display more than one field

    Hi!

    In MS ACCESS 2000 it is possible to set the rowsource to display two or
    many fields from the tblCustomers in a combobox.

    How can I do the same with a ComboBox in C# (SQL DB) say...on a
    frmOrder where I have a combobox that looks up values from
    tblCustomers?

    Me.Name

  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: ComboBox question - display more than one field

    You can only show one value in a combobox. If you want to show more
    than one, then you need to create a field/property to bind to which has the
    aggregate value you want to display.

    Hope this helps.


    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard. caspershouse.co m

    <gsb58@hotmail. com> wrote in message
    news:1134370726 .467455.286460@ g43g2000cwa.goo glegroups.com.. .[color=blue]
    > Hi!
    >
    > In MS ACCESS 2000 it is possible to set the rowsource to display two or
    > many fields from the tblCustomers in a combobox.
    >
    > How can I do the same with a ComboBox in C# (SQL DB) say...on a
    > frmOrder where I have a combobox that looks up values from
    > tblCustomers?
    >
    > Me.Name
    >[/color]


    Comment

    Working...