Skip to main content
Tab

ASPxWebControl.DataBind() Method

Binds the data source to the invoked server control.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.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

The following code snippets (auto-collected from DevExpress Examples) contain references to the DataBind() method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also