Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Dynamically setting individual table rows to readonly


I would like to set specific rows of a table to read-only if the row contains any data. Hence if the row is empty, the user can enter data, but can't change data that already exists.

Does anybody have any idea on how I could accomplish this?

thanks in advance

Anton Kruse

Former Member
Former Member replied

Hi Noel,

Inside the value node(which is bound to your table), create a value attribute of type 'boolean, say 'RowReadonly'

Bind this 'RowReadonly' to 'readonly' property of all celleditors of your table's all columns.

Then if you want to make the i-th row of you table read only, give


for all other rows, for which,are not to be readonly




0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question