2
Answers

bindingsource.Find on several fields

NL

NL

17y
14.6k
1

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)