Populate navigation items from a data source.
[Visual Basic]
Overrides Overloads Public Sub DataBind()
[C#]
public override
void DataBind();
Remarks
EO.Web navigation controls can populate the whole control or individual navigation group from a DataSet, DataTable, DataView or any objects that implements IDataReader or IEnumerable.
To populate navigation items from a data source:
-
Assigning the data source to the BaseNavigator.DataSource or NavigationItemGroup.DataSource;
-
If a data source is DataTable, DataView or IDataReader, you should also provide DataFields to abstract hierarchical data structure from the data source;
-
Optionally, use DataBinding object to define the mappings between data fields and NavigationItem properties. If this step is omitted, fields specifies in DataFields will be used to fill NavigationItem.Text.Html, this step is mandatory if DataSource is a DataSet object.
- Call BaseNavigation.DataBind method or NavigationItemGroup.DataBind method to populate navigation items.
See
data binding for more details.
See Also
BaseNavigator Class | EO.Web Namespace | BaseNavigator.DataBind Overload List | DataSource