Tips and tricks for .NET using ASP and VB code.

Soft hyphen wrapping

Inserting a Soft Hyphen by holding down the Alt key while typing 0173 on the keypad (you must type the zero) in a header will allow that column to wrap without displaying the soft hyphens except in the places where the words wrap.

If a drop down list is populated by copying headers, the soft hyphens must be removed or else they will be visible in the list.
ColumnBoundFieldHeaderText = ColumnBoundFieldHeaderText.Replace(Chr(173), "")

No comments:

Post a Comment

Search This Blog