StrataFrame Forum

PK and filtered data

http://forum.strataframe.net/Topic29049.aspx

By Ian Johnston - 11/19/2010

I have a combo populated with filtered data. When adding a record I get a cast error from the PropertyDescriptor class "return ((CertificateBO)component).FK_customer3;". In tracing through debug it appears that the value for FK_customer3 is being set to the begining value for PK in the table for the new record, in this case 1000, the record with PK 1000 is not in the filtered data and I believe this is causing the error. Am I correct and if so what is a fix for this?
By Ian Johnston - 11/19/2010

O.K. set AlowNullValuesOnNewRow to false, problem solved.
By Ivan George Borges - 11/19/2010

Glad you got it going, Ian. Wink