I made a mistake with the RequiredFields property and wanted to change the 'on form' version just for testing purposes before I changed the actual BO itself. However, it doesn't show in the Properties list when the on form version of the BO is selected.
Is this by design?
Cheers, Peter
However, you can certainly modify the RequiredFields collection programmatically for testing purposes (or to make them different on a per-form basis if necessary). I would recommend copying the code from the InitializeComponent() of the BO because there are a few caveats to the RequireFields collection; namely, you have to use SqlDbType.Text for all System.String properties (at that point, the SqlType doesn't matter, just that it's a string).