untyped dataset

G

Guest

hey all,
i have an untyped dataset defined. I defined a Primary key for it as well.
In the code-behind how do i manually modify the primary key field as auto
seed increment?

thanks,
rodchar
 
N

Nicholas Paldino [.NET/C# MVP]

rodchar,

On the DataColumn that represents the primary key column, you can set
the AutoIncrement property to auto increment. You can also control the seed
that the column auto increments from using the AutoIncrementSeed property.

Hope this helps.
 

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

Top