The BindingSource.Find method seems to work ony on the master BindingSource in a master details configuration. In my case; master is an "Exam" table and details is a "Question" table. The BindingSource for Exam is "BindingSource0" and for Question it is "BindingSource1". The data is in a SQL 2005 database and the relationship is defined. QuestionID is a primary key field in the Question table.
When attempting to use BindingSource.Find ("QuestionID", SearchKey), I get the followinng error: "DataMember property 'QuestionID' cannot be found on the DataSource."
I noticed the DataMember property for BindingSource1 is "FK_Question_Exam" and the DataSource property is BindingSource0. This must be what makes the relational aspect work.
I have seen one other post on the forum describing the same problem, but there was no resolution.
When attempting to use BindingSource.Find ("QuestionID", SearchKey), I get the followinng error: "DataMember property 'QuestionID' cannot be found on the DataSource."
I noticed the DataMember property for BindingSource1 is "FK_Question_Exam" and the DataSource property is BindingSource0. This must be what makes the relational aspect work.
I have seen one other post on the forum describing the same problem, but there was no resolution.