Hello
I'm having a bit of a proooblem.
I have a gridview which has a checkbox as one of the templatecolumn's. When it is checked, it hides a textbox containing a DateTime templatefield (visible="false" which I set in the RowDataBound Event).
I have put the DateTime TextBox inside an updatepanel with an asynchronous trigger on the checkbox. It is hiding and displaying perfectly with the updatepanel whenever the checkbox is selected. However. Since puting the DateTime Textbox inside an updatepanel, it is not updating whenever I click the update button of the gridView. If I take the textbox out of the updatepanel, it updates the gridview and db perfect-o.
Any assistance/suggestions would be much appreciated!
Thanks Terence
Sample of code:
<EditItemTemplate>
<asp:UpdatePanel ID="upStartEdit" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:TextBox ID="txtStartDateEdit" runat="server" Text='<%# Bind("StartDate") %>'></asp:TextBox>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="chkIgnoreStartEndDateEdit" />
</Triggers>
</asp:UpdatePanel>
</EditItemTemplate>