NL

NL

  • NA
  • 3
  • 0

bindingsource.Find on several fields

Oct 22 2007 2:20 AM

Hi 

Can anyone please help me with this problem?

I'm working with a master/detail windows form in c# and I'm trying to locate a record in the detail section with respect to a set of primary keys. 

Initially I was using
"bindingsource.Position = datatable.DefaultView.Find(primaykey_objects)"
to position to the record but the method datatable.DefaultView.Find() returns the index of the record within the whole datatable and not within the detail section.

My ideal solution would have been to use bindingsource.Find on several fields.  How can I do that? Or is there another way to my problem?

Thank you


Answers (2)