This example demonstrates how to populate a Menu from the Database. You should set the DataSource property to specify a source of data and call the DataBind() method.

Each record in the DataTable represents Menu element (item or separator depending on the Type field). Fields represent item attributes. Menu supports building multiple levels of hierarchy (the ID/ParentID model) from a single table in the data source.

In this example, the Menu takes the structure from MS Access Database. You can also use SQL Server or other data source.