WEBSWAPP Silverlight ASP.NET 3.5 ASP.NET 2.0 ASP.NET 1.0
Cascading Lists
ITemplate
DDL in GridView
G/V MultiSelect
Nested GridViews
RegExp
DataGrid Reorder
Events fire twice
Hyperlink Field
TextBox
UpdateParameters
MultiView
TreeView
MultiView

MultiView demo - View Load event handling

CommandsCompany NameStreet AddressCountryProvinceCity
View Detail WEBSWAPP Development Inc. 3070 Guildford Way Canada British Columbia Coquitlam
View Detail MultiMedia CanStirr FlipFlop 277- 5 th street United States Florida Hollywood
View Detail SugarPlumPrincess Kids Toys 25 Edward Ave. United Kingdom Scottland Dublin
View Detail Frisian fishermen Ltd 252 Frisian Street North Netherlands North Holland Enkhuizen
View Detail Seveso Bank 782 Leonardo da Vinci Ave. Italy Basilicata Potenza

The MultiView control renders only the content of the active view. If you perform an operation on the active view that you expect to affect one of the non-active views then you need to force the rendering of that change by handling the View.Load event.

In this demo I have 2 views, one is GridView and the other is a FormView displaying the details of the selected record on the GridView. The FormView display is in a non-active view of a multiview control. When you click on the "View Detail" hyperlink, the View that contains the FormView is activated. Since both the FormView and GridView are attached to the same datasource, the active record on the FormView would appear in a pageIndex that corresponds to the rowindex on the GridView. However, when the GridView is sorted the FormView would not be sorted accordingly because the containing view has not been rendered and therefore it has not been databound to the sorted datasource. This can be solved by databinding the FormView during the View.Load event handling.

Source code:

MultiView source code