Gridview updating event in asp net intelligence differences dating

Till now our Grid View is ready to be populated, now let’s write a method to populate the Grid View.

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.

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.

For Page Name and Page Description field I want them to appear in the Text Box in edit view, so I have specified text property of Text Box as the field value in Edit Item Template and for Active field, I want it to appear as the Drop Down List so I have specified the Selected Value property as the value of the Active field.

You may notice that the last column of the Grid View is a Delete column that let user delete the record from database, so I have placed Delete link button inside the tag and have specified on Click property as Java Script confirm return value, so that when user clicks on it he/she sees a confirmation box whether he/she really wants to delete the record.

So I have to specify how I want them to appear in the normal view and edit view.

That’s why I have placed different templates like Item Template (for normal view) and Edit Item Template (for edit view).

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

In this method, I am specifying the Edit Index property of the Grid View to the New Edit Index of the Grid View and then calling Bind Data() method again to bind the data.

Currently i am getting 5 blank rows which does not show any textbox. Grid Data Insert Item insert Item = (Grid Data Insert Item)Grid Linha De Transporte. Get Insert Item(); // accessing grid insert item insert Item.