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

<!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>
    <style type="text/css">
    div.RadGrid_Default .rgEditRow td
    {
        border-width:0;
    }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <div>
        <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1" AllowPaging="true">
            <MasterTableView AutoGenerateColumns="true" DataKeyNames="CustomerID" DataSourceID="SqlDataSource1" UseAllDataFields="true">
                <ItemTemplate>
                    <table border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td>
                                CustomerID: <%# Eval("CustomerID") %>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                CompanyName: <%# Eval("CompanyName")%>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                ContactName: <%# Eval("ContactName")%>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                ContactTitle: <%# Eval("ContactTitle")%>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Edit">Edit</asp:LinkButton>
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
                <EditItemTemplate>
                    <table border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td>
                                CustomerID: <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("CustomerID") %>'></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                CompanyName: <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("CompanyName")%>'></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                ContactName: <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("ContactName")%>'></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                ContactTitle: <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("ContactTitle")%>'></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Update">Update</asp:LinkButton>
                                <asp:LinkButton ID="LinkButton2" runat="server" CommandName="Edit">Cancel</asp:LinkButton>
                            </td>
                        </tr>
                    </table>
                </EditItemTemplate>
            </MasterTableView>
        </telerik:RadGrid>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
            SelectCommand="SELECT top 10 * FROM [Customers]"></asp:SqlDataSource>
    </div>
    </form>
</body>
</html>
