Greetings, Gary -
The code snippet you posted affects ONLY the data column that currently has input focus, i.e., where the DW's edit control is currently superimposed over the column object so that it can manage user interaction.
If your data column can contain significantly more information than it can display, you could use a tooltip: In each column where you want this functionality, navigate to the Tooltip tab in the Properties pane of the DW Painter.
First, create an expression for the "Enabled" property. If the column can normally display, say 50 characters on average without truncation, code the expression as (without the surrounding quotes) "If( Len(columnname) > 50, 1, 0)". This enables the display of the tooltip text when the column contains more than 50 characters.
Next, create an expression for the tooltip text: '...'+Right(columnname),100) This will display the right-most 100 characters contained in the column preceded with an ellipsis (...)
The tooltip will appear when the user moves the cursor over the column.
If you want to continually display the rightmost portion of the data (not just the mouse is over the column), you may need to use a computed field to display the information in addition to the data column.
Regards, John
Thanks
Gary Cooper