Fill - Index outside bounds array

B

B-Dog

Any idea why when I try to fill my dataset using
xContacts.Fill(xds.Contacts) I get the error:

: Index was outside the bounds of the array.


I've tried rebuilding my dataadapters and dataset and still get the error,
can preview it fine. Thanks
 
C

Cor Ligthert

B-dog

The only idea I can have is that your xds.Contacts is not a dataset or a
datatable.

So show us a part more of your code

Cor
 
B

B-Dog

I think I found it, somehow it was running code elsewhere in my project on
initialize causing my fill to fire twice. 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

Top