Setting column width in a view

You Can View User Feedback To This Tip

This tip will allow you to set the look of your Notes view on the web without having to code XML or heavy HTML.

First create a transparent GIF file in Photoshop or your favorite Imaging application (I suggest using 40pixels X 5pixels, sample attached). Include this file in your image resources. In the view itself, insert an extra column where needed. In the object pane set the value of the column to the transparent image resource you have created(ex: "blank.gif).

In the column property dialog box, on the column info, select Display value as icons box. Change the set width of your image to adjust the space between your columns.


  • This is what I do to set the column width on the Web. This trick is not only useful to create spaces between columns, but it can also be used to set a minimum width of a column itself. This is very handy for views where you do not want the browser to wrap the content of a given column (I use it for date columns mostly).

    The trick is to display a transparent image below the title of the column. I use ecblank.gif, which is a transparent image that domino uses itself, so it is always there. The following code inserts the image below the title of the column and effectively increases the minimum width of the column to 80 pixels:

    My Column Title[<br><img src="/icons/ecblank.gif" height="1" width="80">] —Herman Hebbink

This was first published in November 2001

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.