GitHunt
SY

SyncfusionExamples/EJ2-DataGrid-Core-user-role-based-operations

Enable/Disable the grid editing, column editing and column visibility functionalities from server side based on the user role

ASP.NET CORE DataGrid - User Role based Operations

This sample explains about how to enable/disable the editing, column editing and column visibility functionalities of the grid from the controller based on the user role. This is achieved by defining the values for these properties from the ViewBag based on the user role.

Incident link: https://www.syncfusion.com/support/directtrac/incidents/255173

Prerequisites

  • Visual Studio 2022

How to run the project

  • Checkout this project to a location in your disk.
  • Open the solution file using the Visual Studio 2022.
  • Restore the NuGet packages by rebuilding the solution.
  • Run the project.

Languages

C#57.8%HTML37.7%CSS4.4%JavaScript0.2%

Contributors

Created November 27, 2019
Updated September 13, 2025
SyncfusionExamples/EJ2-DataGrid-Core-user-role-based-operations | GitHunt