The way to keep things synchronized, therefore, is to force Grid View to refresh its data source any time a detail record is updated -- easy to arrange, because the Details View control posts an Item Updated event each time an update is processed.Form View and Details View controls are quite similar, but differ in the way they lay out their outputs.Building master/detail views typically means allowing users to select individual records from a comprehensive records list (the master part) and then to display and manipulate the contents of a single selected record (the detail part). NET 1.x was that, while it could show individual record fields using the Data Grid, Grid View and other controls, it couldn't really manage a master/detail view or provide record-view control without buying third-party tools or building equivalent functionality on your own. In particular, Form View and Details View controls now work with Data Grid and Grid View to make it easy to create master/detail views.

First, look at the markup for the attribute in a different location. NET controls, the order of attributes in the control declaration doesn’t matter.

A couple of interesting things are worth examining. You normally only need these if your column or table name contains a special character such as a space or the name matches a reserved word.

This time around, I draw on an article by Dino Esposito that deals with using the Details View and Form View controls in ASP.

NET 2.0 that work with Data Grid and Grid View to enable easy construction of attractive, readable, data-driven record displays.

Bringing development and IT ops together can help you address many app deployment challenges.

Our expert guide highlights the benefits of a Dev Ops approach.Explore how you can successfully integrate your teams to improve collaboration, streamline testing, and more.As it happens, though ASP 1.x included some powerful and usable data-bound controls, none of them were designed to manage views of individual records. Microsoft now offers new controls that support single-record views. Remember, there’s a script file in the control that should open automatically (if it doesn’t, click the gray arrow on the upper-right corner of the control or right-click the control and choose Show Smart Tag), check all the available check boxes, shown in Figure 13-4. The links in the left column enable you to edit, delete, and select the relevant genres. If you don’t see the Planet Wrox database listed here or you get an error, refer to the preceding chapter, which explains how to set up the database.You can, however, use templates to customize the value cell, by using the Template Field class much as you would for a column within a grid control. These may apply to required fields, regular expressions, or specific value ranges.