Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to replace a data source that uses direct database connection with a new one which is bound to a list of objects

$
0
0

Update:
This example is now obsolete. Refer to the following examples demonstrating how to implement this functionality in the newer control versions:
WinForms: T556647: How to replace DashboardSqlDataSource with DashboardObjectDataSource and filter loaded data manually
ASP.NET: T556759: How to replace DashboardSqlDataSource with DashboardObjectDataSource and filter loaded data manually


This example demonstrates how to replace Sql Data Source with Object Data Source using the DashboardLoaded event. This approach can be used in WinForms, ASP.NET and MVC projects. Generally, all you need is to create a new data source and bind all existing items to it using the DataDashboardItem.DataSource Property. It is necessary that data members of the new data source match data members of the old one.


Viewing all articles
Browse latest Browse all 7205

Trending Articles