dataset primkey

F

Frank

Hello,

how do I remove the primary key on a datatable in a dataset (without
removing the data itself)?
Set the primary key to nothing? Or how?
Thanx
Frank
 
C

CJ Taylor

You should just be able to right click on the key, go to keys.. and click
remove.
 
J

Jeff Johnson [MVP: VB]

You should just be able to right click on the key, go to keys.. and click
remove.

I think he meant programmatically. Frank, did you try setting the PrimaryKey
property to Nothing?
 
F

Frank

Yes Jeff, this seems to work. I did not try it before, because I thought
that couldn't be it.
Thanks
Frank
 

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