By following your code snippet, I am not sure in what case you are using it. Nevertheless, I assume that this behavior is caused by the fact that you have data source that implements IEditableObject
interface. In that case, its EndEdit
method is called when the current row is changed (in the same manner as Microsoft DataGridView). I recommend using the following code snippet to commit changes:
IEditableObject = TryCast(ThisRow.DataBoundItem, IEditableObject)
If the proposed solution does not solve the issue, please share with us a sample project or code snippet that demonstrates it.
the Telerik team