Site Map | About Us | Contact Us  
 The same content in Microsoft HTML help file format is included in the download package.

BaseNavigator.DataBind Method ()

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:

  1. Assigning the data source to the BaseNavigator.DataSource or NavigationItemGroup.DataSource;
  2. If a data source is DataTable, DataView or IDataReader, you should also provide DataFields to abstract hierarchical data structure from the data source;
  3. 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.
  4. 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


Direct link to this topic