ASPxWebControl.DataBind() Method
Binds the data source to the invoked server control.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.1.dll
NuGet Package: DevExpress.Web
Declaration
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.
Related GitHub Examples
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