C# DataGridView CRUD on Database -


i have datagridview in form displays data database, , can add data there, remove there, , save database. problem when add row, id random negative number, when saved database isn't negative. removed visibility of id column in datagridview cannot change anyway. problem however, when go , @ database, row added, id's should auto increment way off. had 5 entries, added 6th , id showed 1005. others had id's of 1, 2, 3, 4, 5 should. how can fix this?


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -