The automatic data source operations only work when binding the grid to
a declarative data source using the DataSourceID property of the grid.
You can take the following Code Libraray which explains how to perform
manual insert/update/delete operation as a reference.
Manual Insert/Update/Delete operations using Auto-generated editform with sql statements from the code-behind: