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

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!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 id="Head1" runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
        <telerik:RadGrid ID="RadGrid1" runat="server" AllowMultiRowEdit="True" DataSourceID="SqlDataSource1"
            OnItemCommand="RadGrid1_ItemCommand" OnItemDataBound="RadGrid1_ItemDataBound">
            <MasterTableView DataKeyNames="ProductID" AutoGenerateColumns="false" EditMode="InPlace"
                CommandItemDisplay="TopAndBottom">
                <Columns>
                    <telerik:GridBoundColumn ReadOnly="true" DataField="ProductID" UniqueName="ProductID"
                        HeaderText="ProductID">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn ReadOnly="true" DataField="ProductName" UniqueName="ProductName"
                        HeaderText="ProductName">
                    </telerik:GridBoundColumn>
                    <telerik:GridCheckBoxColumn DataField="Discontinued" DefaultInsertValue="" HeaderText="Discontinued"
                        UniqueName="Discontinued" DataType="System.int16">
                    </telerik:GridCheckBoxColumn>
                    <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" />
                </Columns>
                <CommandItemTemplate>
                    <asp:Button runat="server" ID="UpdateAll" Text="Update All" CommandName="UpdateAll" /></CommandItemTemplate>
            </MasterTableView>
        </telerik:RadGrid>
        <asp:SqlDataSource ID="SqlDataSource1" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
            SelectCommand="SELECT [ProductID], [ProductName], [Discontinued] FROM [Products]"
            runat="server"></asp:SqlDataSource>
    </div>
    </form>
</body>
</html>
