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

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!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">
    
   
      
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <asp:ScriptManager runat="server" ID="ScriptManager1">
            </asp:ScriptManager>

            <script type="text/javascript">
            
          
          
            </script>

            <asp:Button runat="server" ID="Button1" Text="Export" OnClick="Button1_Click" />            
                
            <telerik:RadGrid ID="RadGrid1"
              ShowGroupPanel="True" ShowStatusBar="True"
                runat="server" DataSourceID="AccessDataSource1" Width="95%" AutoGenerateColumns="False"
                PageSize="3" AllowPaging="True"
                GridLines="None" OnItemCreated="RadGrid1_ItemCreated">
                <PagerStyle Mode="NextPrevAndNumeric" ></PagerStyle>
                <MasterTableView
                Width="100%" DataSourceID="AccessDataSource1" DataKeyNames="CustomerID"
                    AllowMultiColumnSorting="True">                   
                    <Columns>
                        <telerik:GridBoundColumn DataField="CustomerID" HeaderText="CustomerID" ReadOnly="True"
                            SortExpression="CustomerID" UniqueName="CustomerID">                             
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="CompanyName" HeaderText="CompanyName" SortExpression="CompanyName"
                            UniqueName="CompanyName">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="ContactName" HeaderText="ContactName" SortExpression="ContactName"
                            UniqueName="ContactName">
                        </telerik:GridBoundColumn>
                       
                        <telerik:GridBoundColumn DataField="Address" HeaderText="Address" SortExpression="Address"
                            UniqueName="Address">
                        </telerik:GridBoundColumn>
                    </Columns>
                </MasterTableView>                           
            </telerik:RadGrid><asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/Nwind.mdb"
                SelectCommand="SELECT [CustomerID], [CompanyName], [ContactName], [ContactTitle], [Address] FROM [Customers]">
            </asp:AccessDataSource>
            <br />
            <br />
          
            <br />
        </div>
    </form>
</body>
</html>
