Updating in gridview

Rated 3.94/5 based on 922 customer reviews

In this article we will see that how you can implement these functions.You can use the Sql Data Source object to create a data source for the Grid View control.The reason is Grid View needs to know the original primary key through which it can update the data.If you don't prefix it with @original than there is no way to find that which row is updated. before that i want just using Find control and casting and then retrieving all lot code. If values are same they could notify user to change the value(give new cell value). Every one can use it to compare the new value with old ones.After searching long and hard I found a great article that solved my issue.Take a look at the page load if you are binding on post back then the values get updated before you are able to access them.

updating in gridview-36

You can also include parameters using design view using design view sometimes includes special characters in your query which makes it hard to read.Sql Data Source is very easy to use just drag and drop it on the web form and a wizard will guide you on through the steps.First you need to set the Sql Data Source Update Command and its parameters.My best effort got me the value that was in gridview before editing or changing. Some of the most basic operations that we perform using the Grid View control is update and delete.

Leave a Reply