BindingSource IndexOf question

A

Andy

I have having difficulty using the IndexOf method of a BindingSource
object. I am able to find the correct row by using "
this.isvgDevelopmentDataSet.individualTBL.FindByindividualID
(individualID)", and this binding source is set up for the
individualTBL, BUT the IndexOf method keeps returning -1 for not
finding the row object.

....

individualID = id;


int pos = this.individualTBLBindingSource.IndexOf(
this.isvgDevelopmentDataSet.individualTBL.FindByindividualID
(individualID));

this.individualTBLBindingSource.Position = pos; //doesn't work, pos =
-1

.....

Any ideas why this is so?
 

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