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
Smitha Nair replied
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