I 've never used this control with a CSLA object so apologies if this is obvious. I have a DataGridView and a BindingNavigator control on a form. Also 2 BindingSources. My object model is something like
Invoice (EditableRoot)
InvoiceLines (EditableChildList)
InvoiceLine (EditableChild)
So bindingSource 1 has Invoice as its datasource and bindingSource2 has Invoice.InvoiceLines as its datasource (using bindingSource1 as its data source and setting the DataMember to InvoiceLines).
I bind the grid and the bindingNavigator to bindingSource 2 and all works fine. But the add button is disabled. Of course this is because my child InvoiceLines only has a get and no set. How do you usually go about this? Or am I doing something fundamentally wrong?
Thanks Jonny that worked fine.
Copyright (c) Marimer LLC