Skip to main content
Tab

ASPxTitleIndex.GroupingField Property

Gets or sets the data source field which provides values used to group items.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

Declaration

[DefaultValue("")]
public string GroupingField { get; set; }

Property Value

Type Default Description
String String.Empty

A string value that specifies the name of the data source field which contains grouping values.

Remarks

When the ASPxTitleIndex is data bound, the name of the data field that provides values used to group items is specified by the GroupingField property. Otherwise, if the control functions in unbound mode, use the item’s TitleIndexItem.GroupValue property.

Example

This example demonstrates how to implement custom group ranges in the ASPxTitleIndex.

...
<asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/nwind.mdb"
SelectCommand="SELECT * FROM [Customers]"></asp:AccessDataSource>

<dxti:aspxtitleindex id="ASPxTitleIndex1" runat="server" groupingfield="GroupText"
    navigateurlfield="ID" navigateurlformatstring="?id={0}" textfield="ContactName">
    <FilterBox Visible="False"></FilterBox>
    <Columns>
        <dxti:Column></dxti:Column>
        <dxti:Column></dxti:Column>
        <dxti:Column></dxti:Column>
        <dxti:Column></dxti:Column>
        <dxti:Column></dxti:Column>
    </Columns>
</dxti:aspxtitleindex>
...
See Also