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

<%@ Register Assembly="RadInput.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>

<%@ Register Assembly="RadMenu.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>


<%@ Register Assembly="RadGrid.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>
<!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">
    
    <asp:Button runat="server" ID="Button1" Text="Export" OnClick="Button1_Click" />
    
        <rad:RadGrid
         ID="RadGrid1" runat="server" DataSourceID="AccessDataSource1" GridLines="None" AllowPaging="True" VirtualItemCount="20" 
         AllowCustomPaging="true" OnItemCommand="RadGrid1_ItemCommand" OnPageSizeChanged="RadGrid1_PageSizeChanged">
            <MasterTableView AutoGenerateColumns="False" DataSourceID="AccessDataSource1">
                <RowIndicatorColumn Visible="False">
                    <HeaderStyle Width="20px" />
                </RowIndicatorColumn>
                <ExpandCollapseColumn Resizable="False" Visible="False">
                    <HeaderStyle Width="20px" />
                </ExpandCollapseColumn>
                <Columns>
                
                <rad:GridEditCommandColumn>
                </rad:GridEditCommandColumn>
                
                    <rad:GridBoundColumn DataField="ShipName" HeaderText="ShipName" SortExpression="ShipName"
                        UniqueName="ShipName">
                    </rad:GridBoundColumn>
                    <rad:GridBoundColumn DataField="UnitPrice" DataType="System.Decimal" HeaderText="UnitPrice"
                        SortExpression="UnitPrice" UniqueName="UnitPrice">
                    </rad:GridBoundColumn>
                    <rad:GridBoundColumn DataField="Quantity"  DataType="System.Int16" HeaderText="Quantity"
                        SortExpression="Quantity" UniqueName="Quantity">
                    </rad:GridBoundColumn>
                    
                    <rad:GridTemplateColumn>
                    <ItemTemplate>
                    <asp:HyperLink runat="server" ID="HyperLink1" Text='<%# Eval("Quantity") %>'>
                    </asp:HyperLink>
                    </ItemTemplate>
                    <EditItemTemplate>
                    <asp:TextBox runat="server" ID="Textbox1" Text='<%# Bind("Quantity") %>'>
                    </asp:TextBox>
                    </EditItemTemplate>
                    </rad:GridTemplateColumn>
                    
                </Columns>
            </MasterTableView>
        </rad:RadGrid><asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/Nwind.mdb"
            SelectCommand="SELECT TOP 20 [ShipName], [UnitPrice], [Quantity] FROM [Invoices]"></asp:AccessDataSource>
        &nbsp;

     
  
   
    </form>
</body>
</html>
