Last post Feb 24, 2012 10:25 AM by DarrellNorton
Feb 24, 2012 09:44 AM|geniusvishal|LINK
I want to insert data from two tables into a Drop Down List... The situation is like this .. I have two tables named TablePropertyCategory and TablePropertySubCategory.. As the name signifies sub category table contains the sub-category elements of category
table... I want to display the data of both tables like this:
Here ALL Resedential and All commercial is from tablePropertyCategory.. While the remaining are from
Plz suggest how to do this alongwith the SQL -Query.. I am using MS SQL as my database..
The link for the image is:
Regards and Thanx in Advance
Feb 24, 2012 10:15 AM|kedarrkulkarni|LINK
u will not extend default dropdownlist control of asp.net.... since, dropdownlist control as such does not provide way for this
hope this helps...
Feb 24, 2012 10:25 AM|DarrellNorton|LINK
Once you get your data from a database, there are a couple options that you can use to get OPTGROUP tags for an ASP.NET DropDownList.