For this problem we just have to bind the datasource and then in the design we have to code as follows-
<asp:DetailsView ID="DetailsView1" runat="server" Height="50px" Width="125px">
<fields>
<asp:boundfield datafield="policy_no" headertext="Policy No." xmlns:asp="#unknown">
InsertVisible="False"/>
<asp:boundfield datafield="fulname" headertext="Full Name">
InsertVisible="False"/>
<asp:boundfield datafield="dob" headertext="Date of Birth">
InsertVisible="False"/>
</asp:DetailsView></asp:boundfield></asp:boundfield></asp:boundfield></fields>
where DataField contains field from the database table and HeaderText contains our text for the field which we want to display.Using this we can solve the problem.The code is somewhat like Gridview as we can see in the previous solution.