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
 
Back
Top