Jon,
You will not find a convenient API for this.
The Reports dialog uses the XDataTree API to do it.
Basically the formatting is stored as an extra ECInstance on the column definition's XDataTreeNode.
As you've probably noticed, the XDataTree API is not especially user-friendly.
You *can* use that API to add/remove formatting - but the Reports dialog has lots of extra validation logic on top of that to ensure the formatting options specified are compatible with the column's data type.
You may prefer to request that a convenient API be provided on ColumnDefinitionNode.
Regards,
Paul
You will not find a convenient API for this.
The Reports dialog uses the XDataTree API to do it.
Basically the formatting is stored as an extra ECInstance on the column definition's XDataTreeNode.
As you've probably noticed, the XDataTree API is not especially user-friendly.
You *can* use that API to add/remove formatting - but the Reports dialog has lots of extra validation logic on top of that to ensure the formatting options specified are compatible with the column's data type.
You may prefer to request that a convenient API be provided on ColumnDefinitionNode.
Regards,
Paul