MobileForms Toolkit Documentation

AdvancedList.DataSource Property

Gets or sets the data source displayed by the AdvancedList.

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 rows from the same source. For each item in the datasource, proper BoundRow is created and added to the DataRows collection. If the underlying list supports notifications, any change of the underlying datasource is reflected in the DataRows collection.

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

See Also

AdvancedList Class | Resco.Controls.AdvancedList Namespace