I have a class named PlatypusInfo.
I call a method that returns an instance of that class:
PlatypusInfo pi;
. . .
pi = MammalData.PopulateplatypusData(oracleConnectionMainForm, textBoxPlatypusID.Text);
. . .
public static PlatypusInfo PopulateplatypusData(OracleConnection oc, String platypusID) {
int platypusABCID = getABCIDForDuckBillID(oc, platypusID);
platypusInfo pi = new platypusInfo();
...but get this err msg: "System.ArgumentException was unhandled Message=Cannot bind to the property or column platypusName on the DataSource. Parameter name: dataMember Source=System.Windows.Forms ParamName=dataMember"
...on this line of code:
textBoxPlatypusID.DataBindings.Add(new Binding("Text", pi, "platypusName"));
I'm thinking that with my code, the platypusName member of the PlatypusInfo class (the instance of which is "pi") should be assigned to textBoxPlatypusID's Text property.
So am I understanding this incorrectly, am I going about it wrong, or both?
PlatypusInfo- SwDevMan81