Just explain to me why you want to do this ?
The auto-increment is just a simple technic that you just add NULL to the id!! Nothing more!
Ok if you desperately want to do this for your reasons, you can do this without changing the core by simply using the callback_insert method.
I have an example of how to use the callback_before_insert at: http://www.grocerycr..._insert_example
. It works with exactly same way but it just don't have any automated insert so use it rarely. The only difference is that you have to add your own logic there and return true or false. For example:
$crud = new grocery_CRUD();
$output = $crud->render();
/* Your own logic here */
if.... for($i ....)
/* ------------------------- */
$post_array['country_id'] = $my_new_id;
Please try to do the logic by your own, as I prefer to answer more questions from other users to the forum than to try to solve every problem separately. I am sorry I just don't have enough time for this.