Skip to main content
Tab

ASPxWebControl.DataBind() Method

Binds the data source to the invoked server control.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.1.dll

NuGet Package: DevExpress.Web

Declaration

public override void DataBind()

Remarks

<dx:ASPxTitleIndex ID="ASPxTitleIndex1" runat="server">
    <!-- ... -->
</dx:ASPxTitleIndex>
protected void Page_Load(object sender, EventArgs e) {
    string[] names = File.ReadAllLines(Server.MapPath("~/App_Data/customers.txt"), Encoding.Unicode);
    ASPxTitleIndex1.DataSource = names;
    ASPxTitleIndex1.DataBind();
}

Note

Up to v2010 vol 2, the DataBind method also binds the data source to the control’s child controls.

View Example: Grid View for ASP.NET Web Forms - How to bind the grid to a data source on a button click

See Also