Updating data in gridview

Posted by / 26-Sep-2019 00:30

Updating data in gridview

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.

As there is no row at -1 position so Grid View will be shown in normal mode.In this article, I am going to explain how to manipulate data using Grid View control.This article scope is limited to Updating and Deleting records using Grid View and I am not using any readymade Data controls for that but manually writing all event methods.In this method again, I am getting the primary key value using Data Keys property of the Grid View and using it to delete the records from the database.After successfully deleting records, again I am calling Bind Data() method to rebind the Grid View.

updating data in gridview-66updating data in gridview-63updating data in gridview-69

When Edit link of the Grid View will be clicked then On Row Editing event will fire that will call Edit Record method.

One thought on “updating data in gridview”

  1. Dallasswingersclubs a datingelfsim on his internationaldatingfree from cityswingers to datingsiteformarriedpeople, on canadiandatingpersonalspictureservices.