I am using a Template Field to display my Edit, Update and Cancel 'buttons' in the first column of the Grid View within respective Item Template and Edit Item Template fields.Within the Item Template I have an Image Buttong with a Command Name of "Edit".One has it's Command Name = "Update" and the other "Cancel".
This enables you to provide an event-handling method that performs a custom routine, such as canceling the update operation, whenever this event occurs.
A Grid View Update Event Args object is passed to the event-handling method, which enables you to determine the index of the current row and to indicate that the update operation should be canceled.
You could expose security holes or corrupt your own data using general exception handling like this.
Also i noticed one thing if i Auto Generate the Columns All events are fired without any problems but if i use Template Field only Edit Event is fired that is only once.
Get All Roles(); So it gives an error ' System.
Hi All, In above written code only EDIT event is being fired & that is only once after that UPDATE, CANCEL no event is being fired. All I want to do is change the Grid Row Color on the basis of the value entered in QTY field.
The Script Manager is in the Master Page Please help me....
event is raised when a row's Update button is clicked, but before the Grid View control updates the row.
Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.
Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free.
You are currently viewing the Ajax section of the Wrox Programmer to Programmer discussions.