<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default2.aspx.vb" Inherits="Default2" %>

<%@ 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></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <telerik:RadGrid ID="rg" runat="server" AllowSorting="True" AllowMultiRowSelection="true"
            AutoGenerateColumns="false" DataSourceID="AccessDataSource1" Height="230">
            <MasterTableView Width="100%" Summary="RadGrid table" CommandItemDisplay="Top" CommandItemSettings-ShowExportToExcelButton="true"
                CommandItemSettings-ShowExportToCsvButton="false" ShowHeadersWhenNoRecords="true"
                TableLayout="Fixed" AllowNaturalSort="false">
                <Columns>
                    <telerik:GridClientSelectColumn UniqueName="SelectColumn">
                    </telerik:GridClientSelectColumn>
                    <telerik:GridBoundColumn DataField="CustomerID" Visible="true" HeaderText="AccountNo"
                        HeaderStyle-Width="500" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"
                        SortExpression="CustomerID">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ContactName" HeaderText="ContactName" UniqueName="ContactName"
                        SortExpression="ContactName" HeaderStyle-Width="100">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="CompanyName" HeaderText="CompanyName" UniqueName="CompanyName"
                        SortExpression="CompanyName" HeaderStyle-Width="70">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Address" HeaderText="Address" UniqueName="Address"
                        SortExpression="Address" HeaderStyle-Width="80">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="City" HeaderText="City" UniqueName="City" SortExpression="City"
                        HeaderStyle-Width="50">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Country" HeaderText="Country" UniqueName="Country"
                        HeaderStyle-Width="50" SortExpression="Country">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="PostalCode" HeaderText="PostalCode" UniqueName="PostalCode"
                        HeaderStyle-Width="80" SortExpression="PostalCode">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ContactTitle" HeaderText="ContactTitle" UniqueName="ContactTitle"
                        HeaderStyle-Width="70" SortExpression="ContactTitle">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Fax" HeaderText="Fax" UniqueName="Fax" SortExpression="Fax"
                        HeaderStyle-Width="40">
                    </telerik:GridBoundColumn>
                </Columns>
            </MasterTableView>
            <ClientSettings>
                <Scrolling AllowScroll="True" UseStaticHeaders="True"></Scrolling>
                <Selecting AllowRowSelect="True" UseClientSelectColumnOnly="true" EnableDragToSelectRows="false" />
            </ClientSettings>
        </telerik:RadGrid>
        <asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/Nwind.mdb"
            SelectCommand="SELECT CustomerID, ContactName, CompanyName, Address, City, Country, PostalCode,Fax,ContactTitle FROM Customers" />
    </div>
    </form>
</body>
</html>
