You shouldn't need any special controls for this.
You don't say whether you mean ASP.NET or Windows Forms,
but here's what I would do. The principal should be the
same regardless of whether you're using forms of ASP.NET.
I'm assuming you have a Country database table and another
table of cities which you can link to the country table to
give you a result set of cities grouped by country.
When your Form/Page loads, disable the cities ddl, enable
the countries ddl and retrieve the countries list from your
DB, using the returned DataSet to populate your countries
ddl. Then, when your user selects a country, retrieve the
cities for that country and use the returned DataSet to
populate the cities ddl. Enable the cities ddl (and
possibly disable the countries ddl, depending on your
logic).
If you need a more detailed explanation, just post again.
Other people may have a better solution, though. This was
just off the top of my head.
Cheers
Peter
-----Original Message-----
From: CSDevelopers googlegroups.com on behalf of Champs
Sent: Thu 8/31/2006 9:58 AM
To: C# Developers
Cc:
Subject: DropDownList Country Control
hi friends,
i want to have dropdownlist control for country
and it should be like when i'm selecting a paticular
country suppose
India
so in another dropdownlist it should display citys related
to that
country.
is there any free controls, or component, or source code../
if anyone having any idea.
please tell.
Thanks in advance
Champs
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "C# Developers" group.
To post to this group, send email to CSDevelopers googlegroups.com
To unsubscribe from this group, send email to
CSDevelopers-unsubscribe googlegroups.com
For more options, visit this group at http://gr
oups.google.com/group/CSDevelopers
-~----------~----~----~----~------~----~------~--~---
|