id="dtlProducts"
AutoGenerateRows="false"
AutoGenerateEditButton="true"
AllowPaging="true"
DefaultMode="Edit"
DataSourceID="srcProducts"
DataKeyNames="Id"
Runat="server">
id="txtTitle"
Text='<%# Bind("Title") %>'
runat="server" />
id="reqTitle"
ControlToValidate="txtTitle"
Text="(required)"
Display="Dynamic"
Runat="server" />
id="txtTotals"
Text='<%# Bind("Totals", "{0:f}") %>'
runat="server" />
id="reqTotals"
ControlToValidate="txtTotals"
Text="(required)"
Display="Dynamic"
Runat="server" />
id="cmpTotals"
ControlToValidate="txtTotals"
Text="(invalid)"
Display="Dynamic"
Operator="DataTypeCheck"
Type="currency"
Runat="server" />
id="srcProducts"
ConnectionString="<%$ ConnectionStrings:Products %>"
SelectCommand="SELECT Id,Title,Totals FROM Products"
UpdateCommand="UPDATE Products SET Title=@Title, Totals=@Totals WHERE Id=@Id"
Runat="server" />