Skybound AutoComplete

AutoComplete.DataSource Property

Gets or sets the data source for this AutoComplete.

[Visual Basic]
Public Property DataSource As Object
[C#]
public object DataSource {get; set;}

Property Value

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

Remarks

There are two ways add items to an AutoComplete instance.

For example, you can add objects to the AutoComplete by using the Add method. You can also add objects to an AutoComplete by the using the DataSource and DisplayMember properties.

When the DataSource property is set, a user cannot modify the items collection.

When you set DataSource to a null reference (Nothing in Visual Basic), DisplayMember is set to an empty string ("").

See Also

AutoComplete Class | Skybound.AutoComplete Namespace