on 10-19-2007 8:41 AM
Hi
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
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
wdContext.node<YourTablesValueNode>().get<YourTablesValueNode>elementAt(i).setRowReadonly(true);
for all other rows, for which,are not to be readonly
wdContext.node<YourTablesValueNode>().get<YourTablesValueNode>elementAt(i).setRowReadonly(false);
thanks
Smitha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.