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

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!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 id="Head1" runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadGrid runat="server" ID="grdData" AllowAutomaticUpdates="true" AutoGenerateColumns="false"
        OnNeedDataSource="grdData_NeedDataSource">
        <MasterTableView AutoGenerateColumns="false" TableLayout="Fixed" EditMode="EditForms">
            <Columns>
                <telerik:GridBoundColumn DataField="CustomerID" UniqueName="CustomerID" HeaderText="CustomerID">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="ContactName" UniqueName="ContactName" HeaderText="ContactName">
                </telerik:GridBoundColumn>
                <telerik:GridTemplateColumn HeaderText="Style" UniqueName="Address">
                    <ItemTemplate>
                        <asp:DropDownList runat="server" ID="ddl_style" AppendDataBoundItems="true" AutoPostBack="true"
                            OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
                            <asp:ListItem Text="Commission" Value="1"></asp:ListItem>
                            <asp:ListItem Text="Fee" Value="2"></asp:ListItem>
                            <asp:ListItem Text="Other" Value="4"></asp:ListItem>
                        </asp:DropDownList>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>
    </form>
</body>
</html>
