The text of this article is not in this database — only its details are. Read it on the old site: Implement Insert, Update and Delete Functionality in the WebGrid: Part 1
8 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.

Manav PandyaPosted Mar 16, 2017, 12:41 PM
Nice share ................
Gowtham RajamanickamPosted Apr 7, 2016, 4:26 AM
Good Show.
Patricia ConwayPosted Nov 16, 2015, 4:37 PM
Hello, I'm new at working with MVC . The table I'm working with has a composite primary key (a code and a description). Would I still be able to use your sample with some tweaking?
dhana bPosted Oct 13, 2015, 1:48 AM
Error 4 'MvcApplication30.MyDatabaseEntities' does not contain a definition for 'IT_Student' and no extension method 'IT_Student' accepting a first argument of type 'MvcApplication30.MyDatabaseEntities' could be found (are you missing a using directive or an assembly reference?) C:\DOTNET_WORKSPACE\MvcApplication30\MvcApplication30\Models\Class1.cs 58 26 MvcApplication30please help me to solve this issue
Anubhav ChaudharyPosted Dec 18, 2013, 11:20 PM
Please let me know whether your problem get solved by my solution or not.
Anubhav ChaudharyPosted Dec 18, 2013, 11:19 PM
Hello Jaima, I think you have not passed the same parameters which were passed in the Ajax call, check the name of parameters in both Controller and in View where Ajax call is created, parameter name should be exactly same otherwise you will get null values like you are getting at this time. If parameters are same then one more problem could have happen i.e. you have not used the same ID's for Textbox in both Columns and in Ajax Call, ID of Textbox and Labels should be similar in both Grid and in Ajax call, you can use Debugger and inspect element to check your code.
Jaima JosephPosted Dec 18, 2013, 5:37 AM
Hi Abhinav, I have developed an application similar to this....But I am facing a problem to send the textbox fields values,i.e. the columns of the row in edit mode to the controller.for each text box I have given an id and these ids are passed to the controller, but in controller I am getting null values..Do you have any idea?I am displaying the database values in display mode in label fields and in view mode for editing textboxes are there.