<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RadGrid.aspx.cs" Inherits="RadGrid" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <style type="text/css">
        div.RadGrid_Web20 .rgHeader, div.RadGrid_Web20 .rgHeader a
        {
            color: #ffffff;
            font-family: Arial;
            font-size: 8pt;
            font-weight: bold;
            text-decoration: none;
            text-align: left;
            border-right-color: #FFFFFF;
            writing-mode: tb-rl;
            filter: flipV flipH;
        }
    </style>
    <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadGrid ID="RadGrid1" runat="server" Width="750px" AllowPaging="True" DataSourceID="SqlDataSource1"
        Skin="Web20" AutoGenerateColumns="false">
        <MasterTableView HeaderStyle-Width="120px" TableLayout="Fixed">
            <Columns>
                <telerik:GridBoundColumn UniqueName="ProductID" DataField="ProductID" HeaderText="ProductID"
                    SortExpression="ProductID" Aggregate="Count" />
                <telerik:GridBoundColumn UniqueName="ProductName" DataField="ProductName" HeaderText="ProductName"
                    SortExpression="ProductName" Aggregate="None" />
                <telerik:GridBoundColumn UniqueName="QuantityPerUnit" DataField="QuantityPerUnit"
                    HeaderText="Quantity Per Unit" SortExpression="QuantityPerUnit" />
                <telerik:GridNumericColumn Aggregate="Avg" DataField="UnitPrice" HeaderText="Unitprice"
                    SortExpression="UnitPrice" UniqueName="UnitPrice" DataFormatString="{0:C}" FooterAggregateFormatString="Avg: {0:C}" />
                <telerik:GridNumericColumn Aggregate="Sum" DataField="UnitsInStock" HeaderText="InStock"
                    SortExpression="UnitsInStock" UniqueName="UnitsInStock" />
                <telerik:GridNumericColumn Aggregate="Max" DataField="UnitsOnOrder" HeaderText="Units On Order"
                    SortExpression="UnitsOnOrder" UniqueName="UnitsOnOrder" />
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>
    <asp:SqlDataSource ID="SqlDataSource1" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
        ProviderName="System.Data.SqlClient" SelectCommand="SELECT * FROM Products" runat="server">
    </asp:SqlDataSource>
    </form>
</body>
</html>
