sign in • sign up
web | myLot | discussions | tasks | blogs | news | photos
homeinterestsdiscussionstasksblogsnewsmessages friendsphotosearningsmyLotquizzes

Get data from database in dropdown list - C# email this discussion to a friend?

sangearn (17)2 months ago

i am developing application in .net using C# that has drop down list. i want to take data in it, to show the lost. suggest me .

 
 
computer user
sponsors
Development by Browsermedia
Full-service web development; web, wireless and database applications.
www.browsermedia.com

Auto Glass Repair Service
There is a Lot Riding Behind Your Windshield! Get a Quote Online.
www.RoyalGlass.DanMattMedia.com

Piezo Sensors
Order Piezo Sensors from Digikey. Check Availability - Ship Same Day.
www.DigiKey.com

User has not selected a best response.
tags:  database
 
1. AnimaDevoratum (12)   1 month ago

I think you could add the data source first, must be in the data menu, it will open an intuitive wizard to make the data bind, if you're using SQL first you have to test connection to your database, if you're using other sources add your data file to your project, then when you add your drop down list control, like a combo box for example, in the right upper corner you'll see a little arrow with a menu strip there you can add your source, check the option to make a data binding and then select your data source and the field you want to bind, this should add a Binding Source to your project, with this control you can even filter your data, and if you add another control and you use your new binding source as a source to that control it links the fields automatically.

As you see, by doing it this way you dont need any code.

Hope it helps.

Development by Browsermedia Full-service web development; web, wireless and database applications. www.browsermedia.com
 
sponsors
Used Classic Auto Pricing
Used Classic Info, Photos, More. Get Local Dealer Prices.
www.Edmunds.com

ADP Total Source Application
Sign Up and Search Thousands of New Jobs. Post Your Resume.
www.JobsOnline.net

Database Synchronization
High Speed Data Synchronization Between Disparate Data Sources
www.astera.com/cdc

similar discussions
Database
Data base is a shared collection of interrelated data in a structured form, which provides useful...
sponsors
Used Classic Auto Pricing
Used Classic Info, Photos, More. Get Local Dealer Prices.
www.Edmunds.com
return to mylot
We are loading a word from our sponsors. No thanks, cancel loading.