If the user clicks the Delete button On Row Deleting event will be fired.
The above piece of code will also do the same as label in Item Template and Textbox in the Edit Item Template.
By default all the boundfields will be trasferred as Textboxes in Edit Mode.
Then again we have to call that Bind Grid Data () method to bind data for the textboxes.
You can leave a response, or trackback from your own site.
Secondly if you want to include a custom field (some button or link) in the same column it’s not possible.
If we use proper command names for the buttons like “EDIT”, “DELETE”, “UPDATE”, “CANCEL” these will also trigger the appropriate Grid View Events.
Suppose if we are trying to hide primary key of our table, there is actually no need to hide.
In the above Snippet you are seeing a label in Item Template that means whenever we are showing Grid View to the user Label will be visible to the user.
So Grid View will put the appropriate row into the Edit Mode by assigning row number to its Edit Index property.