Data View WebPart – Format Any value-of select to wrap text

Latest “bang my head on the desk” moment was to wrap text in a data view web part. The XLST was modified to show conditional formatting and had columns I wanted, however modifying the width of the webpart, scrollbars appeared. Which is not what I nor the customer wanted.

To avoid this to show line of business data and/or any content from sharepoint, edit the XLST and change the span style for the particular value-of select column, e.g from:

<xsl:value-of select=”/dsQueryResponse/NewDataSet/Row/@title” />


<span style=”width:32px; overflow:auto; white-space:normal”>
<xsl:value-of select=”/dsQueryResponse/NewDataSet/Row/@title” />


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: