<div>
        <asp:DynamicAutoData ID="AutoData1" runat="server" />
        <asp:DynamicDetails ID="DynamicDetails1" runat="server" ControlID="MyDetails" />
        <asp:DetailsView ID="MyDetails" runat="server" AutoGenerateRows="False" DataKeyNames="DepartmentID" DataSourceID="SqlDataSource1">
            <Fields>
                <asp:BoundField DataField="CustomerID" HeaderText="Customer ID" InsertVisible="False" ReadOnly="True" SortExpression="CustomerID" />
                <asp:BoundField DataField="CustomerName" HeaderText="Customer Name" SortExpression="CustomerName" />
            </Fields>
        </asp:DetailsView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:TestConnectionString %>"
SelectCommand="SELECT [CustomerID], [CustomerName] FROM [CustomerMaster]">
        </asp:SqlDataSource>
</div>
