Advanced Binding Samples
This section will show you some of the more complex data binding types that can be accomplished with ASP.NET. Remember that when the user clicks something on the page, a postback is created, and your controls can either be rebuilt from the database or rebuilt from ViewState. The performance impact of the samples shown here will not be discussed. You should be able to look at the samples and see where the performance issues might be for a production system (such as caching the data instead of retrieving it each time).
Header and Detail Forms
One of the most common data binding tasks, as you might have seen in the previous WinForms chapter, is displaying data that exists in a parent-child relationship. This next sample ...