Represents a collection of objects that can be individually accessed by index.
Jagged arrays
A jagged array is an array whose elements are arrays.
If the data source is a jagged array and rows are added or removed from the jagged array from outside of the ComboBoxViewer, then the jagged array must be reassigned to the DataSource property in order for the modifications to be reflected in the ComboBoxViewer.
Example
The following example demonstrates how to bind the ComboBoxViewer to a dataset filled by
an ADO data adapter:
using Xceed.Editors;
using System.Data.OleDb;
string connectionString = ""; //connection query
OleDbConnection connection = new OleDbConnection( connectionString );
connection.Open();
string selectQuery = "SELECT * FROM Clients";
OleDbDataAdapter dataAdapter = new OleDbDataAdapter( selectQuery, connection );
DataSet dataSet = new DataSet( "Clients" );
dataAdapter.Fill( dataSet );
comboBoxViewer1.SetDataBinding( dataSet, "Clients" );
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2