Run the example and Details View control will show first record, similar to the next image: Before using an example you need to set Data Key Names property of Details View control to the name of table primary key column.
In our case table primary key column is named "Product ID".
Other field types display the data using alternate HTML elements.
The Check Box Field, for example, renders as a check box whose checked state depends on the value of a specified data field; the Image Field renders an image whose image source is based upon a specified data field.
Or what if we wanted to display the data using a Web control other than the Check Box, Image, Hyper Link, or Button?
Microsoft Visual Web Developer allows you to create data entry forms for updating records and inserting new ones into a database with only a few lines of code.
Now, you can start an example again and joy in new features.
Category Name FROM Products INNER JOIN Categories ON Products. ID ORDER BY Product ID" This data source contains commands for all four basic operations: Select, Update, Insert and Delete.
Hyperlinks and buttons whose state depends on an underlying data-field value can be rendered using the Hyper Link Field and Button Field field types, respectively.
While the Check Box Field, Image Field, Hyper Link Field, and Button Field field types allow for an alternate view of the data, they still are fairly limited with respect to formatting.
A Check Box Field can only display a single check box, whereas an Image Field can display only a single image.
What if a particular field must display some text, a check box, and an image, all based upon different data-field values?