i get a gridview by Button click where i have date column where to manually enter the date.
Whenever i select the date the date the value goes to first row, even when i select the second or third row.
Below is the coding how i get result.
I need to select the date in second or third row.
Help me in this regard.
<script type="text/javascript">
$(document).ready(function () {
var daysToAdd = 4;
$(".txtFromDate").datepicker({
dateFormat: "dd/mm/yy"
});
$("#txtToDate").datepicker({
dateFormat: "dd/mm/yy"
});
});
</script>
<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" value='<%# Eval("End_Date") %>'
clientidmode="Static" type="text"></input>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>