Data Binding a Drop Down List - InfoPath Dev
in

InfoPath Dev

Data Binding a Drop Down List

Last post 08-08-2005 02:28 PM by speddi. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 08-08-2005 11:27 AM

    • speddi
    • Not Ranked
    • Joined on 08-08-2005
    • USA
    • Posts 6

    Data Binding a Drop Down List

    Hi! I have a drop down list that is populated via a web service. The web service returns a dataset. Now I want to make a selcted index as selected in the drop down. How do i do this.

    I can do the same thing in asp.net as follows.

    myDropDownList.SelectedItem.Selected="True"

    Thanks in advance for the help.

    speddi
  • 08-08-2005 12:49 PM In reply to

    Re: Data Binding a Drop Down List

    Hi speddi, Welcome to the Forum!
    You cannot do the way that you do with asp.net.
    If you want a value to be selected by default then you need to set that value directly into the form xml.
    Once you set the value to the field that is bound to the dropdown then that value is shown as selected in the UI.

    Hope this Helps!

    Agni
    InfoPath Dev India
  • 08-08-2005 02:28 PM In reply to

    • speddi
    • Not Ranked
    • Joined on 08-08-2005
    • USA
    • Posts 6

    Re: Data Binding a Drop Down List

    thanks Agni!


    speddi
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.