Refer the below code For your reference.
HTML
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js" type="text/javascript"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"
type="text/javascript"></script>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css"
rel="Stylesheet" type="text/css" />
<script type="text/javascript">
$(document).ready(function () {
$("[id$=txtEndDate]").datepicker({
dateFormat: "dd/mm/yy",
});
});
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:GridView ID="gvStatusTotal" runat="server" AutoGenerateColumns="False">
<Columns>
<asp:TemplateField HeaderText="Select">
<HeaderTemplate>
<asp:CheckBox ID="chkHeader" runat="server" Checked="false" Visible="true" />
</HeaderTemplate>
<ItemTemplate>
<asp:CheckBox ID="chkRow" runat="server" Checked="false" />
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="Emp_Id_R" HeaderText="Service Adviser" />
<asp:BoundField DataField="Approved" HeaderText="Approved" />
<asp:BoundField DataField="DisLike" HeaderText="DisLike" />
<asp:BoundField DataField="Delay" HeaderText="Delay" />
<asp:BoundField DataField="Deny" HeaderText="Deny" />
<asp:BoundField DataField="VIN" Visible="False" />
<asp:BoundField DataField="Post_Status" Visible="False" />
<asp:TemplateField HeaderText="Total">
<ItemTemplate>
<asp:Label ID="Total" runat="server"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="End Date">
<HeaderTemplate>
<asp:Label ID="lblEndDate" runat="server"></asp:Label>
</HeaderTemplate>
<ItemTemplate>
<input id="txtEndDate" runat="server" class="txtFromDate"
clientidmode="Static" type="text"/>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</div>
</form>
</body>
</html>
C#
protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPostBack)
{
DataTable dt = new DataTable();
dt.Columns.AddRange(new DataColumn[8] {
new DataColumn("Emp_Id_R", typeof(int)),
new DataColumn("Approved", typeof(string)),
new DataColumn("DisLike", typeof(string)),
new DataColumn("Delay", typeof(string)),
new DataColumn("Deny", typeof(string)),
new DataColumn("VIN", typeof(string)),
new DataColumn("Post_Status", typeof(string)),
new DataColumn("End_Date", typeof(DateTime))
});
dt.Rows.Add(1, "Approved", "Dislike1", "Delay1", "Deny1", "VIN1", "Post_Status1", "01-01-2017");
dt.Rows.Add(2, "Approved", "Dislike2", "Delay2", "Deny2", "VIN2", "Post_Status2", "02-01-2017");
dt.Rows.Add(3, "Approved", "Dislike3", "Delay3", "Deny3", "VIN3", "Post_Status3", "03-01-2017");
gvStatusTotal.DataSource = dt;
gvStatusTotal.DataBind();
}
}
Screenshot