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.
Question Comments
Added By: Yan Xiaohua at: 9/29/2015 11:30:16 PM
What shall we do if the source table structure may change ? e.g: click button1 return product list, but click button2, return customer list?