I am having difficulty binding to a property on my object.
This is my property:
private int? Tid;
private int? innerTenantID {
get { return Tid; }
set {
Tid = value;
innerTenant = (value.HasValue)? Tenant.GetTenantByID(value.Value) : null;
}
}
And this is my attempt to bind:
this.DataBindings.Add(new Binding("innerTenantID", tblCashReceiptsBindingSource, "TenantID"));
I get, ArguementException, "Cannot bind to the Property 'innerTenantID' on the target control. Prameter name: PropertyName;
The TenantID value is a nullable integer.