Quick Links
ASP.NET ComboBox - Populating with Data - ObjectDataSource
ShipName_1
1
ShipName_2
2
ShipName_3
3
ShipName_4
4
ShipName_5
5
ShipName_6
6
ShipName_7
7
ShipName_8
8
ShipName_9
9
ShipName_10
10
ShipName_11
11
ShipName_12
12
ShipName_13
13
ShipName_14
14
ShipName_15
15
ShipName_16
16
ShipName_17
17
ShipName_18
18
ShipName_19
19
ShipName_20
20
ShipName_21
21
ShipName_22
22
ShipName_23
23
ShipName_24
24
ShipName_25
25
The ComboBox can be populated from various types of data sources:
DataSourceControls - SqlDataSource, ObjectDataSource, LinqDataSource etc.;
LINQ - LINQ queries at runtime;
Collections (generic & non-generic) - IList, IEnumerable, etc.;
DataSet / DataTable;
Declarative
The ComboBox presented in this sample is populated from a
ObjectDataSource
control. This is done by setting the
DataSourceID
property of the ComboBox to be the ID of the ObjectDataSource control.
Also, the
DataValueField
and
DataTextField
properties need to be used to specify the name of the database fields that will be used to populate the Value and Text properties of the generated ComboBoxItems.
"
I just want to say that your response time is incredible... the developer we have working with the license we purchased (Grid) has reported that he is getting technical support responses in under an hour consistently (and they make sense and solve his problems). GREAT company! I will be telling others about our experience.
"
Scott MacDonald
Velsoft
obout.com
obout.com Home
News
ComboBox Home
ComboBox Home
Examples
- 53
Appearance
- 1
Live Styles
Autocomplete & Filtering
- 2
Autocomplete
Filtering
Load on Demand
- 4
Load Items on Demand
Load Items on Demand with Paging
Virtual Scrolling
Initial Text
Multi-Columns
- 4
Grid-like Multi-Columns
Multiple Rows and Columns
Load multi Columns on Demand
State Selector
Items with Icons
- 3
Items with Icons
Grid-like Multi-Columns with Icons
Multiple Rows and Columns with Icons
Templates
- 3
Item Templates
Header Templates
Footer Templates
Populating with Data
- 5
Declarative
SqlDataSource
ObjectDataSource
Generic Collections
DataSet
Item Selection
- 6
Single Item Selection
Multi Item Selection
Get Selected Item
Get Selected Items
Set Selected Item
Set Selected Items
Mode
- 2
ComboBox
TextBox
Master/Detail
- 3
Master/Detail
Unlimited Detail Levels
Cascading ComboBoxes
Integration
- 5
Items with ASP.NET CheckBoxes
Items with Obout CheckBoxes
RadioButtons inside ComboBox
TreeView inside ComboBox
ComboBox inside Grid
Settings
- 8
AllowCustomText
AllowEdit
AutoPostback
AutoValidate
Height
MenuWidth
OpenOnFocus
Width
Server-Side API
- 2
Server-Side Events
Enable / Disable
Client-Side API
- 5
Client-Side Events
Add / Remove Items
Enable / Disable
Get Selected Item
Knowledge Base
- 1
Knowledge Base
Documentation
- 13
Server-Side
ComboBox
ComboBoxClientSideEvents
ComboBoxCssSettings
ComboBoxFilterType
ComboBoxFooterTemlateContainer
ComboBoxHeaderTemlateContainer
ComboBoxItem
ComboBoxItemEventArgs
ComboBoxItemTemlateContainer
ComboBoxLoadingItemsEventArgs
ComboBoxMode
Client-Side
Client-Side API
ChangeLog
Products
AJAX Page
Calendar
Color Picker
Date Picker
File Upload Progress
Flyout
Grid
HTML Editor
Image Zoom
Listbox
Multilevel Listbox
Scheduler
Show
Spell Checker
Splitter
Tab Strip
TreeView
Tree_DB
Window
Menu
Context Menu
Easy Menu
Slide Menu
Text Menu
Combobox
Combobox
AJAX Autosuggest
Multilevel Combobox
State Selector
Interface Controls
Button
Checkbox
Dropdown List
Multiline Textbox
Radio Button
Textbox
ASP.NET MVC
Interface Controls
Download
Download page
Install FAQ
Tech Support
Our clients
Testimonials
Support
Support
Purchase
Purchase page
Contact Sales
License info
Sales FAQ
Customer login
Print Invoice
Installation
Company
Legal
Clients
Testimonials
Contact