runat="server"
ConnectionString="<%$ ConnectionStrings:Northwind %>"
ProviderName="System.Data.SqlClient"
SelectCommand="SELECT ProductID, ProductName, UnitPrice, UnitsInStock FROM Products">
runat="server"
AutoGenerateColumns="False"
CellPadding="4"
DataKeyNames="ProductID"
DataSourceID="sourceProducts"
Font-Names="Verdana"
Font-Size="Small"
ForeColor="#333333"
GridLines="None"
AllowPaging="True"
OnRowCommand="GridView1_RowCommand">
ImageUrl='<%# GetStatusPicture(Container.DataItem) %>'
CommandName="StatusClick"
CommandArgument='<%# Eval("ProductID") %>'
/>
HeaderText="ID"
InsertVisible="False"
ReadOnly="True"
SortExpression="ProductID" />
HeaderText="Product"
SortExpression="ProductName" />
DataFormatString="{0:C}"
HeaderText="Price"
SortExpression="UnitPrice" />
HeaderText="UnitsInStock"
SortExpression="Units In Stock" />