APNSoft.com - Web Controls, components for ASP.NET
 About Us 
 Articles 
 Products
 Downloads 
 Purchase
 Support

ComboBox
Controls Suite 4.5


Overview
Features
Reference Book
Live Demos
Populating with Data
XML File
Database
Dynamically
Appearance
Behavior
Programming
Application scenarios







This example demonstrates how to populate a ComboBox from the Database. You should set the DataSource property to specify a source of data and call the DataBind() method.

Each record in the DataTable represents ComboBox element (item or separator depending on the Type field). Fields represent item attributes.

In this example, the ComboBox takes the structure from MS Access Database. You can also use SQL Server or other data source.



Code Samples:


© 2003-2024 APNSoft. All rights reserved.    Terms of use.