Limno,
Again you came to the rescue, thanks! I did have to make several attempts before I got the code right. Here is what I ended up with.
<asp:SqlDataSource ID="SqlDataSource3" runat="server"
ConflictDetection="CompareAllValues"
ConnectionString="<%$ ConnectionStrings:CS-GolfSQL %>"
DeleteCommand="DELETE FROM [Tees] WHERE [IDt] = @original_IDt"
InsertCommand="INSERT INTO [Tees] ([IDc], [Color], [Rating], [Slope], [FwdTee]) VALUES (@IDc, @Color, @Rating, @Slope, @FwdTee)"
OldValuesParameterFormatString="original_{0}"
SelectCommand="SELECT * FROM [Tees] WHERE ([IDc] = @IDc) ORDER BY [Color]"
UpdateCommand="UPDATE [Tees] SET [Color] = @Color, [Rating] = @Rating, [Slope] = @Slope, [FwdTee] = @FwdTee WHERE [IDt] = @original_IDt">
<SelectParameters>
<asp:ControlParameter ControlID="DropDownList1" Name="IDc"
PropertyName="SelectedValue" Type="Int16" />
</SelectParameters>
<InsertParameters>
<asp:ControlParameter Name="IDc" Type="Int16" ControlID="DropDownList1" PropertyName="SelectedValue" />
<asp:Parameter Name="Color" Type="String" />
<asp:Parameter Name="Rating" Type="Single" />
<asp:Parameter Name="Slope" Type="Int16" />
<asp:Parameter Name="FwdTee" Type="Boolean" />
</InsertParameters>
</asp:SqlDataSource>
For the sake of brevity I deleted the Delete & Update parameters. It took me a couple of tries before changed ControlID="DetailsView1$ddl1" to ControlID="DropDownList1" and deleted the original <asp:Parameter Name="IDc" Type="Int16" />. With my current lack of expertise I don't feel as if I'm designing code; I feel as if I'm taking a random walk in a code/mine field and any step could cause the whole thing to blowup. Once I have a basic understanding of a code topic I find that the MSDN help and turorials are useful. But, when I'm at the beginning of ASP and SQL I need a text with examples. Can you or others recommend such a text?