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

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">

    <telerik:RadGrid runat="server" AutoGenerateEditColumn="true" Visible="true"
        AllowFilteringByColumn="true" ShowGroupPanel="true" ID="RadGrid1" AutoGenerateColumns="false" AllowSorting="true">
        <MasterTableView DataKeyNames="ID" EnableLinqGrouping="false">
            <GroupByExpressions>
                <telerik:GridGroupByExpression>
                    <GroupByFields>
                        <telerik:GridGroupByField FieldName="BProp.Name" />
                    </GroupByFields>
                    <SelectFields>
                        <telerik:GridGroupByField FieldName="BProp.Name" />
                    </SelectFields>
                </telerik:GridGroupByExpression>
            </GroupByExpressions>
            <Columns>
                <telerik:GridBoundColumn DataField="ID" HeaderText="ID">
                </telerik:GridBoundColumn>
                <telerik:GridTemplateColumn
                    HeaderText="BProp"
                    SortExpression="BProp.Name"
                    UniqueName="BProp"
                    GroupByExpression="BProp.Name [BProp] Group By BProp.Name">
                    <ItemTemplate>
                        <%# Eval("BProp.Name") %>&nbsp;  
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
            </Columns>
        </MasterTableView>
        <ClientSettings AllowDragToGroup="true"></ClientSettings>
    </telerik:RadGrid>

</asp:Content>
