Binding Expando And Dynamic Objects To The ASP.NET Core Datagrid Control
A quick start ASP.NET Core web application demonstrating how to bind a dynamic list of objects using Expando and Dynamic Objects using Syncfusion Grid Control.
ExpandoObject
: Allows dynamic members to be added or removed at runtime, useful for binding data to a Data Grid without a predefined model.DynamicObject
: Enables runtime definition of object structure and behavior by inheriting from DynamicObject and overriding methods like TryGetMember, TrySetMember, and GetDynamicMemberNames.
Documentations:
- Expando Object: https://ej2.syncfusion.com/aspnetcore/documentation/grid/data-binding/local-data#expandoobject-binding
- Dynamic Object: https://ej2.syncfusion.com/aspnetcore/documentation/grid/data-binding/local-data#dynamicobject-binding
- Data Binding: https://ej2.syncfusion.com/aspnetcore/documentation/grid/data-binding/remote-data
- Table Binding: https://ej2.syncfusion.com/aspnetcore/documentation/grid/data-binding/data-table
Demo: https://ej2.syncfusion.com/aspnetcore/Grid/DefaultFunctionalities#/fluent
Project pre-requisites
Make sure you have compatible versions of the following IDE and framework installed on your machine before starting this project:
- .NET SDK 6.0 (.NET )
- Visual Studio 2022 (Visual studio) or later
To learn more about the supported IDE and frameworks for our ASP.NET Core controls, please refer to the documentation below: https://ej2.syncfusion.com/aspnetcore/documentation/system-requirements
How to run this application:
To run this application, you need to clone the binding-expando-and-dynamic-objects-to-the-aspdotnet-core-datagrid
repository and open it in Visual Studio. Install the necessary NuGet packages via the package manager, then build and run the project using the Visual Studio interface.