MobileForms Toolkit Documentation

AdvancedComboBox.DataSource Property

Gets or sets the data source displayed by the AdvancedComboBox.

public object DataSource {get; set;}

Property Value

An object that implements the IList interface, such as a DataTable or an Array. The default is a null reference (Nothing in Visual Basic).

Remarks

For the given DataSource one common PropertyMapping is created, that can be used to identify the items from the same source. For each item in the datasource, proper BoundItem is created and added to the Items collection. If the underlying list supports notifications, any change of the underlying datasource is reflected in the Items collection.

When the DataSource property is set, or the item is added to the underlying datasource, the TemplateIndex and SelectedTemplateIndex properties of AdvancedComboBox are used as template indices of inserted BoundItem. You can change them in the ValidateData event handler.

See Also

AdvancedComboBox Class | Resco.Controls.AdvancedComboBox Namespace