hello,
i have problem with datetime when i try press edit, then when i change from (B) without edit date, the recorde going from list because the date change to 1900-01-01
i must also set again the date
i did try with simple code like this its work but i dont like it
<EditItemTemplate>
<asp:TextBox ID="txtBoxDate3" runat="server" Text='<%# Eval("daterm", "{0:yyyy/MM/dd}") %></asp:TextBox>
</EditItemTemplate>
am looking like this (3)
<asp:TemplateField HeaderText="التاريخ">
<ItemTemplate>
<asp:Label ID="lblBoxDateadd3" runat="server" Text='<%# Eval("daterm", "{0:yyyy/MM/dd}") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="txtBoxDate3" runat="server" Text='<%# Eval("daterm", "{0:yyyy/MM/dd}") %>' TextMode="Date"></asp:TextBox>
</EditItemTemplate>
<ItemStyle HorizontalAlign="Center" Width="100px"/>
</asp:TemplateField>