Thanks for jumping in to assist.
I am binding to the SelectedValue property in the Template field of the GridViewControl as follows:
<asp:GridView ID="grdMOCSigs" runat="server" SkinID="MOC" EmptyDataText="There are no active MOC Signature records to display ..." AutoGenerateColumns="False" AllowSorting="False" DataKeyNames="id" DataSourceID="objDSMOCSigs">
<Columns>
....
<EditItemTemplate>
<BDP:BDPLite ID="datSignedBDP" runat="server" SelectedValue='<%# Bind("datSigned") %>' DateFormat="d" Width="125px" Enabled="True" />
</EditItemTemplate>
<ItemTemplate>
<BDP:BDPLite ID="datSignedBDP" runat="server" SelectedValue='<%# FormatNullDate(Eval("datSigned")) %>' DateFormat="d" Width="125px" Enabled="False" />
</ItemTemplate>
...
</asp:GridView>
Note that in the ItemTemplate, I call a function FormatNullDate that identifies the SQLServer field value of '1/1/1900' and then places the value "" in to the BDPLite control. However, when I select the edit button, the grid then uses the EditItemTemplate to display and edit which then shows the value '1/1/1900'. Note on a control that you want bound using <%#BIND()%>, you can not have it call a function - or at least that is my understanding of ASP. So, that being said, BDPLite through BIND receives the value '1/1/1900' and displays it and uses it to select the initial date in the pop-up. What I'm looking for is a way for BDPLite to ignore SQL Servers Date Null value of '1/1/1900'.
Thanks ...
David
Any day above ground is a good day!