Gridview update rowupdating

tbl Set Marks: Class, Section, Admission No, Subject ID, Subject Code, Max Marks, Marks I want to update marks inside gridview using edit command button.

when I update the record It performs updation on the above row instead of desired row.

gridview update rowupdating-44gridview update rowupdating-12

Next example we will make connection using Sql Connection and Sql Dataadapter method and Sql Commmand and Stored Procedure method and Linq method. In this example, I am going to retrieve values from categories table of Northwind database. Drag a Grid View into the Web Form and assign Data Key Names property with the primary key column i.e. In the gdview_Row Editing and gdview_Row Deleting event, we have used the below code to retrieve categoryid from datakey of Grid View, int catid = int. Save all or press "Ctrl S" and hit "F5" to run the page, the page will look as in the following image: Click on "Edit the Grid View", it will display Textboxes in each cell as in the following image: Edit the value(s) here and click on the Update link, it will update all the data or to remove it click on the "Delete" link above the image shown.Thanks for choosing Dev Express for your software development needs.We are your extended team and are working hard to make certain you have all the resources necessary to build your next great app.

Leave a Reply