You need to use template fields. A
TemplateField
object enables you to specify templates that contain markup and controls to customize the layout and behavior of a column in a DetailsView control. Using an
ItemTemplate
, you can specify the layout to be used when the DetailsView displays data in a column.
Refer:
MSDN: Template Field[
^]