<ig:WebDataGrid runat="server" ID="wdgProducts" DataSourceID="SqlDsProducts" DataKeyFields="ProductID" AutoGenerateColumns=" OnCalculateCustomSummary="WebDataGrid1_CalculateCustomSummary"> <Columns> <ig:BoundDataField DataFieldName="ProductID" DataType="System.Int32" Key="ProductID"> </ig:BoundDataField> <ig:BoundDataField DataFieldName="ProductName" DataType="System.String" Key="ProductName"> </ig:BoundDataField> <ig:BoundDataField DataFieldName="UnitPrice" DataType="System.Decimal" Key="UnitPrice"> </ig:BoundDataField> <ig:BoundDataField DataFieldName="UnitsInStock" DataType="System.Int32" Key="UnitsInStock"> </ig:BoundDataField> <ig:BoundDataField DataFieldName="UnitsOnOrder" DataType="System.Int32" Key="UnitsOnOrder"> </ig:BoundDataField> </Columns> <Behaviors> <ig:SummaryRow> <ColumnSummaries> <ig:ColumnSummaryInfo ColumnKey="UnitPrice"> <Summaries> <ig:Summary CustomSummaryName="STDEV" SummaryType="Custom" /> <ig:Summary SummaryType="Average" /> </Summaries> </ig:ColumnSummaryInfo> </ColumnSummaries> <ColumnSettings> <ig:SummaryRowSetting ColumnKey="UnitPrice"> <SummarySettings> <ig:SummarySetting CustomSummaryName="STDEV" SummaryType="Custom" /> </SummarySettings> </ig:SummaryRowSetting> </ColumnSettings> </ig:SummaryRow> </Behaviors> </ig:WebDataGrid> <asp:SqlDataSource ID="SqlDsProducts" runat="server" ConnectionString="<%$ ConnectionStrings:SamplesDB %>" SelectCommand="SELECT [ProductID], [ProductName], [UnitPrice], [UnitsInStock], [UnitsOnOrder] FROM [Products]"> </asp:SqlDataSource>