StrataFrame Forum

Allow Deleted Rows in Custom Field Properties dialog

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

By Clayton Hoyt - 1/14/2006

Can you explain what the Allow Deleted Rows property does? The help topics I have still reference the older Custom Field Properties dialog.

Thanks!

By StrataFrame Team - 1/16/2006

The ShowDeletedRows property changes the RowStateFilter on the DefaultView of the internal DataTable to include rows with the row state of DataRowState.Deleted. So, if you set the ShowDeletedRows property to True, then rows that have been deleted act like normal rows within the business object.



The Allow Deleted Rows checkbox in the business object mapper is used if you're ever going to set the ShowDeletedRows property to True... When you access a field in a deleted data row, you have to pull the original value. So, when you set the Allow Deleted Rows property to true, the field is created with a test on the row state. If the row state is Deleted, then the Original value is returned, else the current value is returned.