This example is an MVC-based analog of the E2968 - How to bind ASPxGridView with autogenerated columns to different data sources at runtime code example. Note that in the case of MVC, implementation is much simpler. We use an AJAX callback to reload the GridView extension with the selected datasource. In addition, it is necessary to pass the datasource Id to GridView-specific callbacks. We use the approach described in the Passing Values to a Controller Action through Callbacks help section for this purpose.
See Also:
E4063 - How to use the jQuery.ajax function with DevExpress MVC Extensions
T191698 - How to isolate extension settings into separate helper class and share a single partial view to display multiple extensions
See Also:
E4063 - How to use the jQuery.ajax function with DevExpress MVC Extensions
T191698 - How to isolate extension settings into separate helper class and share a single partial view to display multiple extensions