<%@ Page Language="c#" Inherits="Telerik.GridExamplesCSharp.Programming.BusinessGrid.DefaultCS"
    CodeFile="DefaultCS.aspx.cs" %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link href="./Business/Grid.Business.css" rel="stylesheet" type="text/css" />
    <!-- end of custom head section -->
</head>
<body class="BODY">
    <form runat="server" id="mainForm" method="post" style="width: 100%;">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <telerik:RadGrid ID="BusinessGrid" runat="server" AutoGenerateColumns="False" GridLines="None"
            DataSourceID="ADS1" AllowPaging="True" PageSize="4" Width="476px" AllowMultiRowEdit="True"
            AllowAutomaticDeletes="True" EnableEmbeddedSkins="False" Skin="Business">
            <MasterTableView DataKeyNames="CustomerID" CommandItemDisplay="Top" DataSourceID="ADS1"
                TableLayout="Fixed" CurrentResetPageIndexAction="SetPageIndexToFirst" Dir="LTR"
                Frame="Border">
                <CommandItemSettings AddNewRecordImageUrl="Business/Grid/AddRecord.gif" RefreshImageUrl="Business/Grid/Refresh.gif" />
                <Columns>
                    <telerik:GridBoundColumn CurrentFilterFunction="NoFilter" DataField="CustomerID"
                        FilterListOptions="VaryByDataType" ForceExtractValue="None" HeaderText="CustomerID"
                        ReadOnly="True" SortExpression="CustomerID" UniqueName="CustomerID">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn CurrentFilterFunction="NoFilter" DataField="CompanyName"
                        FilterListOptions="VaryByDataType" ForceExtractValue="None" HeaderText="CompanyName"
                        SortExpression="CompanyName" UniqueName="CompanyName">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn CurrentFilterFunction="NoFilter" DataField="ContactName"
                        FilterListOptions="VaryByDataType" ForceExtractValue="None" HeaderText="ContactName"
                        SortExpression="ContactName" UniqueName="ContactName">
                    </telerik:GridBoundColumn>
                </Columns>
                <RowIndicatorColumn CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType"
                    Visible="False">
                    <HeaderStyle Width="20px" />
                </RowIndicatorColumn>
                <ExpandCollapseColumn CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType"
                    Resizable="False" Visible="False">
                    <HeaderStyle Width="20px" />
                </ExpandCollapseColumn>
                <EditFormSettings>
                    <EditColumn CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType">
                    </EditColumn>
                </EditFormSettings>
            </MasterTableView>
            <ClientSettings EnablePostBackOnRowClick="True">
                <Selecting AllowRowSelect="True" />
            </ClientSettings>
            <PagerStyle NextPageText="&amp;gt;" PrevPageText="&amp;lt;" Mode="NextPrevAndNumeric"
                NextPageImageUrl="Business/Grid/NextPage.gif" PrevPageImageUrl="Business/Grid/PrevPage.gif">
            </PagerStyle>
        </telerik:RadGrid>
        <asp:AccessDataSource ID="ADS1" runat="server" DataFile="~/App_Data/Nwind.mdb" SelectCommand="SELECT [CustomerID], [CompanyName], [ContactName] FROM [Customers]">
        </asp:AccessDataSource>
    </form>
</body>
</html>
