how to manually create primary key values on a dataset?

  • Thread starter Thread starter bill
  • Start date Start date
B

bill

I've been using the following to fetch my keyvalues at runtime. But I just
changed my base query to join into a couple of new tables so it's no longer
retreiving a valid key.

MyDa.MissingSchemaAction = MissingSchemaAction.AddWithKey;

How do I manually add either a single key field or multiple ones?

Do I do this before the DataAdatper.Fill( MyDs,...) method?

Thanks
 

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