Rowupdating object sender gridviewupdateeventargs

I've successfully displayed data using a Grid View, as well as bringing the Grid View into an Edit, Update, Cancel mode.

If user clicks the Cancel button while Grid View is in editing mode, you need to Cancel the Editing process and also need to reset the Edit Index property to -1 in the Row Canceling Edit event of the Grid View control as shown below: The last step is to handle the Row Updating event to actually update the back end database.

In this tutorial we are searching for our Text Box controls txt Product Name and txt Unit Price.

To get the Primary Key reference we can use the Data Keys collection of the Grid View.

By Default, Grid View control displays Item Template which directly shows the Product Name and Unit Price columns but when user clicks Edit button Grid View automatically switches to Edit Item Template and display the control available inside Edit Item Template for user editing.

Now I will show you the C# code behind file of the above ASP.

Leave a Reply

  1. thai girls dating in scandinavia 08-Nov-2017 19:50

    Um die volle Funktionalität der Seite zu nutzen, müssen Sie die Darstellung von Flash-Inhalten in Ihrem Browser erlauben.

  2. Cam2cam porn mobile 04-Aug-2017 13:40

    Another source of culture shock for expats is unrealistic expectations.

  3. No cc sex dating 26-Aug-2017 08:35

    Apart from that, there are cool girls who can share a nude selfie with you.