Populating DropdownCombo

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

    Populating DropdownCombo

    Hi,

    I've a combobox ,I'm populating that combo from my database using ,
    DropCountry.Dat aSource=rsreade r2;DropCountry. DataTextField=" Country";DropCo untry.DataValue Field="idcntry" ;DropCountry.Da taBind();

    I'm storing ID in Datavalue field and it's country name in DataTextField for displaying.

    How 'll i get the corresponding ID value when i select one Country?

    Can anyone help me to solve this problem?.

    thanks,

    Vjay








  • Dan Cimpoiesu

    #2
    Re: Populating DropdownCombo

    Try combo.SelectedV alue property

    Hope this helps
    Dan
    "Vaj" <vinitha_k@hotm ail.com> wrote in message news:OyBILaVjDH A.1948@TK2MSFTN GP12.phx.gbl...
    Hi,

    I've a combobox ,I'm populating that combo from my database using ,
    DropCountry.Dat aSource=rsreade r2;DropCountry. DataTextField=" Country";DropCo untry.DataValue Field="idcntry" ;DropCountry.Da taBind();

    I'm storing ID in Datavalue field and it's country name in DataTextField for displaying.

    How 'll i get the corresponding ID value when i select one Country?

    Can anyone help me to solve this problem?.

    thanks,

    Vjay







    Comment

    Working...