How to Bind a Breadcrumb Control to a Dataset at Design Time
To bind a data-aware breadcrumb to the dataset, follow the steps below:
In the Object Inspector:
Use the breadcrumb’s DataBinding.DataSource property to link the breadcrumb to the self-referenced dataset, via the data source component.
Map the breadcrumb’s DataBinding.KeyField and DataBinding.ParentKeyField properties to the corresponding dataset fields to build a hierarchy in the breadcrumb.
Map the breadcrumb’s DataBinding.NameField property to the corresponding dataset field to display the content.
Use the breadcrumb’s RootValue property (that matches the DataBinding.ParentKeyField property), to specify the hierarchy starting point.
If node image indexes are stored in the dataset, map the breadcrumb’s DataBinding.ImageIndexField property to the corresponding dataset field.
You might also consider performing additional customization to the breadcrumb. For example, adding action buttons to the control (see the TdxBreadcrumbEditButton).
Now, the breadcrumb application is ready to run.