Using Fields with the DetailsView Control

If you need more control over the appearance of the DetailsView, including the particular order in which columns display, you can use fields with the DetailsView control, which supports exactly the same fields as the GridView control:

BoundField Enables you to display the value of a data item as text.

CheckBoxField Enables you to display the value of a data item as a check box.

CommandField Enables you to display links for editing, deleting, and selecting rows.

ButtonField Enables you to display the value of a data item as a button (image button, link button, or push button).

HyperLinkField Enables you to display the value of a data item as a link.

ImageField Enables you to display the ...

Get ASP.NET 4 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.