listbox binding

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

    #1

    listbox binding

    Hi,

    I am using this code to fill a list

    cmbList.DataSou rce = DataSet1
    cmbList.Display Member = "examID"
    cmbList.ValueMe mber = "examID"
    but it's giving me this error: "Could not bind to the new display member"


    --
    Regards,
    M.Rochdi
  • S.M. Altaf [MVP]

    #2
    Re: listbox binding

    Try

    DataSet1.Tables (0).DefaultView

    ?



    --------------------------------------------------------------------------------
    All that glitters has a high refractive index.



    "Mike" <Mike@discussio ns.microsoft.co m> wrote in message
    news:64B7BD1E-1F0C-4A81-B888-2ADB357A1182@mi crosoft.com...[color=blue]
    > Hi,
    >
    > I am using this code to fill a list
    >
    > cmbList.DataSou rce = DataSet1
    > cmbList.Display Member = "examID"
    > cmbList.ValueMe mber = "examID"
    > but it's giving me this error: "Could not bind to the new display member"
    >
    >
    > --
    > Regards,
    > M.Rochdi[/color]


    Comment

    Working...