Customize Autogenerated Columns Using Data Annotations In An ASP.NET Core Datagrid

Sample date Updated on Sep 12, 2025
aspdotnetcore-datagrid aspdotnetcore-datagrid-annotation aspdotnetcore-datagrid-display-attribute aspdotnetcore-datagrid-display-format-attribute aspdotnetcore-datagrid-editable-attribute aspdotnetcore-datagrid-key-attribute aspdotnetcore-datatable data-annotation datagrid datatable

A quick-start project that helps to use data annotations to customize autogenerated columns in the Syncfusion ASP.NET Core DataGrid. You can apply attributes like Display, DisplayFormat, and ReadOnly to modify the appearance and behavior of auto-generated columns.


Documentation: https://ej2.syncfusion.com/aspnetcore/documentation/grid/data-annotation

Demo: https://ej2.syncfusion.com/aspnetcore/Grid/DataAnnotation#/fluent


Project pre-requisites

Make sure you have compatible versions of the following IDE and framework installed on your machine before starting this project:


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, clone the customize-autogenerated-columns-using-data-annotations-in-an-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 by pressing the F5 key.

Up arrow