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 (1) - Column Widths
posted

If I attempt to set the width of individual columns in a web grid to anything other than percentages the width property is ignored. Surely this major glitch cannot be a bug in a product of this vintage! How long has this product been on sale?

What I need to do is similar to the table layouts declared in html whereby one or more columns have their width explicitly stated in pixels and the remaining column has a width of "100%" indicating that it should occupy, fully, whatever space is left.

Is it possible to do this?

VS2008 Pro, IG2008v1, C#

Kind regards

Paul

  • 8680
    posted

    PaulShearing said:
    If I attempt to set the width of individual columns in a web grid to anything other than percentages the width property is ignored.

    I'm not sure what's supposed to happen when you mix pixels with percentages, but I've had no problem setting widths to pixels.

    If you leave out the last "100%", do the pixel values work correctly?

    If not, you might want to post your markup and any code that sets widths.

     

  • 3338
    posted

    Don't know how much help this will be.

    There is a property whereby you can set the last column to expand to the width of the grid.

     

    see if this post helps.

    http://forums.infragistics.com/forums/p/6421/40957.aspx#40957