ComboBox
Controls Suite 4.5 |
| Overview |
| Features |
| Reference Book |
| Live Demos |
| | Populating with Data |
| | Appearance |
| | Behavior |
| | Programming |
| | Application scenarios |
| | | Update Panel |
|
| | | Desktop |
|
| | | My Documents |
|
| | | My Computer |
|
| | | Local Disk (C:) |
|
| | | DVD-RAM Drive (D:) |
|
| | | Control Panel |
|
| | | Shared Documents |
|
| | | My Network Places |
|
| | | Recycle Bin |
|
|
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.
|