How to add identity column to datatable using c#

前端 未结 6 1211
逝去的感伤
逝去的感伤 2020-12-16 18:37

How to add identity column to datatable using c#. Im using Sql compact server.

6条回答
  •  悲&欢浪女
    2020-12-16 19:18

    Just my two cents. Auto-increment is useful in a Winform app (stand alone as Michael Buen rightly said), i.e.:

    DatagridView is being used to display data that does not have a "key field", the same can be used for enumeration.

提交回复
热议问题