exposes several end-user events two of which you will find useful in the context of the new row: UserAddingRow
. These events are fired when the user commits the new row (by pressing the Enter key or by clicking somewhere in the grid). As the name of the UserAddingRow
implies, it allows for preventing the new row from being committed as a data row. This may be useful in case some of the data entered by the end-user is invalid according to some custom requirements. The UserAddedRow
event is fired when the row is already added. In the GridViewRowEventArgs.Rows
collection it is indicated how many rows are added in the current operation. Usually you are supposed to have 1 row only. If you want to detect how many rows there are in the grid, you can check the RadGridView.Rows
collection. It always returns the correct rows number on my end. I have attached my sample project for your reference.
According to the provided information, I would suggest you consider using either summary rows or calculated columns. Thus, it wouldn't be necessary to execute any calculations programatically. Additional information is available in the following help article:
I hope this information helps. If you have any additional questions, please let me know.