You can influence it with setting read/write access rights on the entity per userrole.
An approach I have used is to have a table in the form with 2 rows and a single column. Have an editable version of the dataview in one row, and a read only version in the other row. Then you can use an attribute in the current object to show or hide the rows.
Using read/write access is not an option here, since depending on criteria the user may be authorized to edit a specific record, whilst for other records he may not. Having two rows for every item is probably the best solution, as long as there is no way to set editability on an entire form, datagrid or so. Thanks!