Auto Increment (auto-increment) Field validation Due to Underscore Character in Primary Key
It was a strange issue, but if there is underscore "_" character in your primary key, it will cause the validation to fail when edit or add new records.
It may be a phpGrid limitation. For now don't use underscore in table or column names. Sorry for the inconvenience.