Loading Data

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ryan Schoolman

    #1

    Loading Data

    I have a dataset and have it connected to a combobox but, how do I load the
    data into it?


    --
    Ryan Schoolman - Programmer & Application Architect
    ryan@pclegends. com

    PC Legends


    [w] 715.839.6855
    [c] 715.379.0878
    [h] 715.855.9003


  • Aravind C

    #2
    Re: Loading Data

    Hi Ryan,

    Have you tried using the DataSource property of the ComboBox to populate
    it with the data from your data set ?.
    Set the DisplayMember property to the field that you would
    like to display.

    myComboBox.Data Source = dataSet.Tables["Authors"].DefaultView;
    myComboBox.Disp layMember = "au_id";

    Does this not work ?

    Regards,
    Aravind C


    "Ryan Schoolman" <ryan@pclegends .com> wrote in message
    news:uZZxfrmoDH A.424@TK2MSFTNG P10.phx.gbl...[color=blue]
    > I have a dataset and have it connected to a combobox but, how do I load[/color]
    the[color=blue]
    > data into it?
    >
    >
    > --
    > Ryan Schoolman - Programmer & Application Architect
    > ryan@pclegends. com
    >
    > PC Legends
    > http://www.pclegends.com
    >
    > [w] 715.839.6855
    > [c] 715.379.0878
    > [h] 715.855.9003
    >
    >[/color]


    Comment

    Working...