You must Sign In to post a response.
  • Category: .NET

    Nested Combobox in C#

    Hi Friends,

    Is it possible to have combobox inside of a combobox in C# Desktop application?

    Combo 1st containing State names, and if i choose Tamilnadu from that it needs to show district of TN.

    I don't want 2 separate Combobox, i need it like a sub menu.
    Give me some ideas.

    Thanks in advance

    Best Regards,
    Murugesan P
  • #769705
    Generally to implement the above requirement, we should go for 2 drop down controls so that we can have parent values and based on parent values we will bind the child values into 2nd drop down i.e linked values against the 1st drop down selected value like Tamilnadu related districts in 2nd drop down.

    If still you want to do same with one drop down then on change/selection of drop down item.. rebind the selected value child values but how you are going to get again lost values? definitely with some event you have to get and bind again. i suggest go for 2 drop downs for your requirement.

    B.Ramana Reddy

  • Sign In to post your comments