This example shows you how to bind the ASPxGridView to an ArrayList object.
<dxwgv:ASPxGridView ID="ASPxGridView1" runat="server">
<Settings ShowColumnHeaders="False" />
</dxwgv:ASPxGridView>
protected void Page_Load(object sender, EventArgs e) {
ASPxGridView1.DataSource = CreateData();
ASPxGridView1.DataBind();
}
private ArrayList CreateData() {
ArrayList ds = new ArrayList();
ds.Add("ASPxGridView and Editors");
ds.Add("ASPxTreeList");
ds.Add("ASPxCloudControl");
ds.Add("ASPxHtmlEditor");
ds.Add("ASPxPivotGrid");
return ds;
}
Class SurroundingClass
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
ASPxGridView1.DataSource = CreateData()
ASPxGridView1.DataBind()
End Sub
Private Function CreateData() As ArrayList
Dim ds As ArrayList = New ArrayList()
ds.Add("ASPxGridView and Editors")
ds.Add("ASPxTreeList")
ds.Add("ASPxCloudControl")
ds.Add("ASPxHtmlEditor")
ds.Add("ASPxPivotGrid")
Return ds
End Function
End Class