Updating data in gridview updating reverse lookup zones

Posted by / 10-Apr-2019 10:11

Updating data in gridview

With the help row variable, I am going to find all the controls placed under that row in edit mode using Find Control property.

After finding the controls I am using them to pass their values to the parameter of the Sql Command object that is ultimately updating the records into database.

That’s why I have placed different templates like Item Template (for normal view) and Edit Item Template (for edit view).When Update link of the Grid View will be clicked (in edit mode), On Row Updating event will fire that will call Update Record method.In this method, we have to get changed values of Text Box and Drop Down list and also we need the primary key value for the record that is being edited.I have specified Data Key Names as Auto ID, the primary key of the database table.Then I have several methods attached with following events Get video of hundreds of ASP. On Row Editing - Edit Record On Row Cancel Edit - Cancel Record On Row Updating - Update Record On Row Deleting - Delete Record As I set Auto Generate Columns property to false so I am going to manually write the fields name that I need to appear in the way I want.

updating data in gridview-15updating data in gridview-8updating data in gridview-3