RadComboBox fully supports
binding to collections, tables and datasets
and this example demonstrates RadComboBox's data binding capabilities:
-
In the first tab, the items from an array of system processes are bound to the combobox,
one at a time. The items are lexicographically sorted by using the following code
line
this.radComboBox1.Sorted = Telerik.WinControls.Enumerations.SortStyle.Ascending.
-
The second tab demonstrates binding from a dataset. The dataset is initially loaded
with information about files in your local My Documents folder.
-
In the third tab, an array of processes is bound to the RadComboBox.
-
In the fourth tab, a RadComboBox and a standard combobox are populated with custom Customer objects. Both use a Generic BindingList
of type Customer. The data source is
a BindingSource component that manages the generic array.
-
In the fifth tab, a RadComboBox
and a standard combobox are populated from a DataSet.