Skip to content

Bindingsource.Find on several fields

NL

Asked Oct 21, 2007, 10:20 PM EDT2 answers
Share
LinkedInX

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

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • 0

    Hi y dont u look at this link u vl find it very useful bcz one of the concept wt u want is clearly expalined in this as per my knowledge

    http://www.15seconds.com/issue/051117.htm

    Happy Coding  :-)

    0
  • 0
    Thanks for the tip.

    Will have a look and let u know.
    0