Add auto increment column in datagrid

  • Thread starter Thread starter Melson
  • Start date Start date
M

Melson

Hi

Can anyone help me. I would like to create a product entry form which has 2
tables in ms sql. First table is product header which contain product code
and second table is product detail which contain product code, item... etc.
Product detail table will be displayed in a datagrid.

So far I've completed most of the coding except the item in the product
detail table. The item should be able to automatically increment eg. 1,2,3
item mean it has 3 product detail records. However, when I delete second
records (item 2), how can I update the third item (3 item) to second item (2
item).


Please help. Thanks

Regards
Melson
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top