Please refer below sample
I have created sample using Northwind database.
HTML
<div>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false">
<Columns>
<asp:BoundField DataField="EmployeeId" HeaderText="Employee Id" />
<asp:BoundField DataField="FirstName" HeaderText="First Name" />
<asp:BoundField DataField="LastName" HeaderText="Last Name" />
<asp:TemplateField>
<ItemTemplate>
<table width="100%" cellpadding="2" cellspacing="2">
<tr>
<th>
Title
</th>
<th>
Title of Courtesy
</th>
<th>
Birth Date
</th>
</tr>
<tr>
<td>
<asp:Label ID="lblTitle" runat="server" Text='<%#Eval("Title") %>'></asp:Label>
</td>
<td>
<asp:Label ID="lblTitleOfCourtesy" runat="server" Text='<%#Eval("TitleOfCourtesy") %>'></asp:Label>
</td>
<td>
<asp:Label ID="lblBirthDate" runat="server" Text='<%#Eval("BirthDate") %>'></asp:Label>
</td>
</tr>
<tr>
<th>
Hire Date
</th>
<th>
Home Phone
</th>
<th>
City
</th>
</tr>
<tr>
<td>
<asp:Label ID="lblHireDate" runat="server" Text='<%#Eval("HireDate") %>'></asp:Label>
</td>
<td>
<asp:Label ID="lblHomePhone" runat="server" Text='<%#Eval("HomePhone") %>'></asp:Label>
</td>
<td>
<asp:Label ID="lblCity" runat="server" Text='<%#Eval("City") %>'></asp:Label>
</td>
</tr>
<tr>
<th>
Region
</th>
<th>
Extension
</th>
<th>
Country
</th>
</tr>
<tr>
<td>
<asp:Label ID="lblRegion" runat="server" Text='<%#Eval("Region") %>'></asp:Label>
</td>
<td>
<asp:Label ID="lblExtension" runat="server" Text='<%#Eval("Extension") %>'></asp:Label>
</td>
<td>
<asp:Label ID="lblCountry" runat="server" Text='<%#Eval("Country") %>'></asp:Label>
</td>
</tr>
</table>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</div>
Namespace
using System.Configuration;
using System.Data.SqlClient;
using System.Data;
C#
protected void BindGrid()
{
string query = "SELECT EmployeeID,FirstName,LastName,Title,TitleOfCourtesy,BirthDate,HireDate,HomePhone,City,Region,Country,Extension,Notes,Address,PostalCode FROM Employees";
string conString = ConfigurationManager.ConnectionStrings["constr"].ConnectionString;
using (SqlConnection con = new SqlConnection(conString))
{
using (SqlCommand cmd = new SqlCommand(query, con))
{
using (SqlDataAdapter sda = new SqlDataAdapter(cmd))
{
using (DataTable dt = new DataTable())
{
sda.Fill(dt);
GridView1.DataSource = dt;
GridView1.DataBind();
}
}
}
}
}
Screenshot
