<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default11.aspx.cs" Inherits="Default11" %>
<%@ 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 runat="server" ID="ScriptManager1"></asp:ScriptManager>
        
        <telerik:RadGrid runat="server" ID="RadGrid1" AutoGenerateColumns="false" AllowPaging="true"
            AutoGenerateEditColumn="true" OnItemCommand="RadGrid1_ItemCommand" 
            OnNeedDataSource="RadGrid1_NeedDataSource"
            OnItemEvent="RadGrid1_ItemEvent">
            <MasterTableView DataKeyNames="OrderID">
                <Columns>
                    <telerik:GridBoundColumn DataField="OrderID" HeaderText="OrderID">
                    </telerik:GridBoundColumn>
                    
                    <telerik:GridBoundColumn DataField="ShipName" HeaderText="ShipName">
                    </telerik:GridBoundColumn>
                </Columns>
                <EditFormSettings EditFormType="Template">
                    <FormTemplate>
                        OrderID: 
                        <asp:TextBox runat="server" ID="TextBox1" Text='<%#Bind("OrderID") %>'></asp:TextBox>
                        <br/>
                        Ship name: 
                        <asp:TextBox runat="server" ID="TextBox2" Text='<%#Bind("ShipName") %>'></asp:TextBox>
                        <br/>
                        Ship city: 
                        <asp:TextBox runat="server" ID="TextBox3" Text='<%#Bind("ShipCity") %>'></asp:TextBox>
                        <br/>
                        <asp:Button runat="server" ID="Button1" Text="Update" CommandName="Update"/>
                    </FormTemplate>
                </EditFormSettings>
            </MasterTableView>
        </telerik:RadGrid>
        
    </div>
    </form>
</body>
</html>
