Rowupdating method

Note: Instead of using Text Box in normal mode use Labels. If you like my work; you can appreciate by leaving your comments, hitting Facebook like button, following on Google , Twitter, Linkedin and Pinterest, stumbling my posts on stumble upon and subscribing for receiving free updates directly to your inbox .We can't update a record until that record doesn't exist in the input type field (Text Box).So first we need to move to an updateable row record in the Text Box.To do that we need a Row Editing event of the Grid View.

So we need to create a Stored Procedure on which we pass all parameters that are updateable along with the primary key value, in other words the row data's key value that is being updated.On Row Updating is fired when the 'Edit' button is clicked. Is the data bound to the gridview, your gridview markup doesn't say that it is bound to Category Name. In the Row Updating event handler, it fetches the Category Name data to which the textbox is bound to. Try something the gridview is bound to in your case Product [email protected] Vijay : I agree that its bad idea to enable any Id to be editable, but before going to my module i just create one table containing Prod ID and prod Name. Point numbers 2 and 3 are performed after point 1 is performed.1.Row move in edit mode We have a Grid View with records.Delete a Record We can delete a record from the database table by clicking on the delete button that is in the Delete column of the Grid View.

830

Leave a Reply

  1. animated dating game mature 24-Mar-2017 20:13

    Watch complete adult home videos with girls wearing nothing but sexy socks on.