This example illustrates how to bind ASPxGridView to data when clicking an external button.
Note that if the grid is already bound to another datasource, it is necessary to set the grid's EnableViewState property to False.
Also, clear the grid's columns and set the AutoGenerateColumns property to True before calling the DataBind method.