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
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.
See Also