Here Mudassar Ahmed Khan has explained with an example, how to add new row to WebGrid using jQuery in ASP.Net MVC Razor.
The WebGrid will be populated from database using Entity Framework .
When the Add button is clicked, jQuery will add a new row to WebGrid and will also send the data to Controller’s Action method using AJAX and the record will be inserted to database Table using Entity Framework.
↧