Back to Devexpress

ASPxTitleIndex.TextField Property

aspnet-devexpress-dot-web-dot-aspxtitleindex-0d9accb7.md

latest2.5 KB
Original Source

ASPxTitleIndex.TextField Property

Gets or sets the data source field which provides content to the ASPxTitleIndex‘s items.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue("")]
public string TextField { get; set; }
vb
<DefaultValue("")>
Public Property TextField As String

Property Value

TypeDefaultDescription
StringString.Empty

A string value that specifies the name of the data source field which contains item content.

|

Remarks

When the ASPxTitleIndex is data bound, the name of the data field that provides text for items is specified by the TextField property. Otherwise, if the control functions in unbound mode, use the item’s TitleIndexItem.Text property to specify its contents.

Example

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

aspx
...
<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

DescriptionField

Title Index

ASPxTitleIndex Class

ASPxTitleIndex Members

DevExpress.Web Namespace