Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
105
Increment default value in ID column
posted

I have a WinGrid (v7.3) control that I have enabled the addition of rows to.

I have a ID column. Is it possible to have a default value that increments everytime a new row is added (much like SQL server with identity column (1,1)?

 

Any help on this would be very much appreciated.

Thanks in advance

  • 105
    Verified Answer
    posted

    After a closer look I am doing this in the AfterRowInsert method.

     I increment a property on the form that holds the latest value.

    This works very well...