The grid doesn't provide an event for row deletion (you can find the discussion of these abilities in the thread DQ52355). In the future, I suggest you use the Devexpress Support Center to get official and guaranteed assistance on the use of Dev Express products. Still seems odd that this is not part of the Grid View.

I suggest that you handle required events at the level of your datasource. Note that FULL SUPPORT IS FREE even during the evaluation period (30 days). Regarding Dev Express support center: yes I have support center, but I get such good support here!!

event is raised when a row's Edit button is clicked, but before the Grid View control enters edit mode.

A Grid View Edit 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 edit operation should be canceled.

to understand the gridview events you can check this page you can read this tutorial; this helps Hiii adilahmedmd, Row Data Bound :- This Event Is Fired Every Time When a Row is Bound To The Data.

Data Bound:- THE Data Bound is Similar To Row Data Bound in That Both are Fired After a Bound Event has Happened.

The Difference is that Data Bound is Fired Once After The Entire Grid has Been Bound Event Has Happened.

EDIT: I found a piece of code in the comments of this blog: I'm not sure for I haven't tried but the statement says you need to use the Data Source ID property in binding with the Grid View.

I might try that and see if you can assign an ID to a datasource and bind it in code behind.

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.

Storing datatable in View State is not a good practice as it increases the size of your page and reduces the performance, also View State can be deciphered on the client side, so the Data Table is not secure.

I removed everything I did with View State and edited the original post again with what I currently got. I cannot sort the Grid View because I'm trying to sort with Your code doesn't have Data Source ID.

To cancel the update operation, set the collections, if necessary, before the values are passed to the data source.