Please change your code as follows: Disclaimer: The information provided on Dev and its affiliated web properties is provided "as is" without warranty of any kind.
Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose.
The server disposes of all controls automatically when a Page is unloaded, and there is no necessity to do this manually. Dispose();" code string, ASPx Grid View will operate as expected. In addition, would you please describe why it is necessary to dispose of the grid in your application? ok now i have removed the line gv.dispose(); and then tried.
This behavior is caused by the fact that you dispose of ASPx Grid View in its Html Row Created event, which is raised before the Row Updating event. I should say that it is not correct to dispose of objects in this manner.
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.
Also, and im no exception catching expert, it seems that your try catch blocks are a bit general.
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.
After it has been clicked the postback places that row in edit mode. At this point in time the above Edit Item Template is displayed with two Image Buttons within it.However, the Values collection contains previous field values, not new ones.To solve this issue, it is necessary to pass new values entered to the Edit Form Template editors.now row_updating event fires but my edited data is not saved to the database, please try at your endplease look into itthanks in advance and have a nice day Hello Akhtar. This behavior is caused by the fact that you are passing the Values collection to the e.New Values parameter in the Row Updating event handler.