<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default"
    Culture="auto" %>

<%@ 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 runat="server">
    <title>Untitled Page</title>
    <style type="text/css">
       .RadGrid_Black .rgGroupHeader
       {
           color:Red !important;           
       }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager runat="server" ID="Manager1">
    </asp:ScriptManager>

    <script type="text/javascript">

        function OnGridCreated(sender, args) {

        }           
            
    </script>

    <telerik:RadGrid runat="server" ID="RadGrid1" AllowPaging="True" DataSourceID="AccessDataSource1"
     Skin="Black" EnableHeaderContextFilterMenu="true"
        GridLines="None" onprerender="RadGrid1_PreRender1" 
        AllowFilteringByColumn="True">
        <MasterTableView AutoGenerateColumns="False" DataKeyNames="OrderID" DataSourceID="AccessDataSource1"    
         EnableHeaderContextFilterMenu="true" EnableHeaderContextMenu="true"           
            PageSize="20" ShowGroupFooter="true">            
            <RowIndicatorColumn>
                <HeaderStyle Width="20px"></HeaderStyle>
            </RowIndicatorColumn>
            <ExpandCollapseColumn>
                <HeaderStyle Width="20px"></HeaderStyle>
            </ExpandCollapseColumn>
            <Columns>
                <telerik:GridBoundColumn DataField="OrderID" DataType="System.Int32" HeaderText="OrderID"
                    ReadOnly="True" SortExpression="OrderID" UniqueName="OrderID">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="CustomerID" HeaderText="CustomerID" SortExpression="CustomerID"
                    UniqueName="CustomerID">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Freight" DataType="System.Decimal" HeaderText="Freight"
                    SortExpression="Freight" UniqueName="Freight" Aggregate="Sum">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="ShipVia" DataType="System.Int32" 
                    HeaderText="ShipVia" SortExpression="ShipVia" UniqueName="ShipVia">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="ShipCity" HeaderText="ShipCity" 
                    SortExpression="ShipCity" UniqueName="ShipCity">
                </telerik:GridBoundColumn>
            </Columns>
        </MasterTableView>
        
    </telerik:RadGrid>
    <asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/Nwind.mdb"
        
        SelectCommand="SELECT [OrderID], [CustomerID], [Freight], [ShipVia], [ShipCity] FROM [Orders]"></asp:AccessDataSource>
    </form>
</body>
</html>
