Set the gridControl1.UseEmbeddedNavigator property to true. You'll get a data navigator widget at the bottom of your view.
That only gets you halfway there, however. If you want to be able to add Orders to a Customer from the grid, your Customer class needs to use BindingList
instead of List
for the Orders property.
See here for more information. If you find the documentation lacking, you can also find helpful resources at the Support Center.
EDIT: Some other options to consider are:
- Bind your grid to a database.
- Bind to XML data and use a
DataSet
.
If you're already storing your data in a database, then option 1 would be the way to go. If you're not persisting your data anywhere yet, you could go either way.