'How to get existing database record into an GirdView for performing CRUD operations in ASP.NET MVC?
I have a model class.
public class Employee
{
public int EmployeeId { get; set; }
[Required (ErrorMessage = "Full name Required")]
public string Name { get; set; }
[Required]
public string City { get; set; }
[Required]
public string Department { get; set; }
[Required]
public string Gender { get; set; }
public bool BulkUpdate { get; set; }
}
}
I have a database table also populated with records. I want to implement an editable grid view control in MVC. How should i approach for this? It will be helpful if someone gives me an idea about the View.cshtml file.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
