Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1360
Formatting Issues with WebGrid (3) - TextOverflow
posted

 Has anybody managed to get the textoverflow = Ellipsis property to work? I am setting the property using:

                 Grid.xxx.Wrap = False;
                 Grid.xxx.TextOverflow = TextOverflow.Ellipsis;

Where xxx is or more of the grid styles, such as RowStyleDefault and RowAlternateStyleDefault. I am aware of another posting regarding this issue where the solution mooted was to programmatically truncate the text. This won't work in my case bacuse the columns containing the long text is the one that I want to vary in width as the page size changes. See my previous post regarding column widths.

Any Ideas?

VS2008 Pro, IG2008v1, C#

Kind regards

Paul

  • 45049
    posted

    If you want WebGrid cells to wrap, you should also make sure you set the grid's DisplayLayout.TableLayout property to "Fixed".

    The default value for this property is "Auto"; when this is set, most browsers will auto-size a column to fit the content of the widest cell in the table.  When this happens, you won't see a cell wrap or show an overflow indicator.

  • 3338
    posted

    look at appearance browser..

    Grid element

    framestyle

    textoverflow = ellipsis