Rowupdating net adating ru

Last line of the following code is calling a local method for updating the database and passing all the parameters to this method.

Please keep in mind that there are many different ways to update the database using the Grid View control depending on the type of data you are updating and the functionality the user need and there are many solutions to achieve the same end result.

Fill(ds); //Here you can do any modification to the selected data ds.

The visitors to a web site can typically be divided into two groups: the users and the administrators.

It provides the feature of reflecting the changes made to a Data Set or an instance of the SQL server data.

The Command Builder opens the Connection associated with the Data Adapter Object and makes a round trip to the server each and every time and it's asked to construct the action queries.

rowupdating net-81

Next event is the Grid View Row Editing event to give ASP. You need to set the Edit Index property of the Grid View with the New Edit Index property of the Grid View Edit Event Args class.In the above code, I set two properties Show Edit Button and Show Cancel Button of Command Field.These properties will automatically render Edit, Update and Cancel buttons inside Grid View column.Now I will show you the C# code behind file of the above ASP.NET page that will handle different Grid View events to provide complete editing functionality.

Leave a Reply