on 12-16-2005 3:43 AM
Hi,
I am displaying my data in a table control. For one Column of the table the same data is repeated, I don't want to show the same data for that particular column again and again in every row. I want to span the Rows for that particular column and show it as a single value.
Can any one help me in this regard.
Abhimanyu,
First, this functionality is available in NW04s only -- setting grouping value will do row span automatically for you, and grid lines are drawn accordingly.
Second, in NW04 you may emulate this behavior almost identically, however, you will see extra grid lines (sorry, no workaround).
Create a calculated read-only attribute of type Visibility, bind visibility property of cell editor to this attribute, and write the following in attribute getter:
if ( element.index() == 0 ) return WDVisibility.VISIBLE;
final IWDNodeElement prev = element.node().getElementAt
(
element.index() - 1
);
return
element
.getAttributeValue("<Your-GrouppingAttr>")
.equals( prev.getAttributeValue("<Your-GrouppingAttr>") ) ?
WDVisibility.NONE : WDVisibility.VISIBLE;
Valery Silaev
EPAM Systems
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.