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
821
StationaryMargins="Header" with grid container
posted

Hello Dear

Im facing some problems with the grid size when using Stationary Margins. So I have an UltraWebGrid with StationaryMargins="Header". The container has for example 400px in Width and Height; Now I set the Grid's Framestyle to Width:100% and Height:100% then setting scrollbars to auto.

Now, the Grid is bigger in its hight than it could be relating to its container. Its seems that the grid size is 400px + the Hight of the fixed column from the stationary margin settings; --> It overlaps the div in the background (where the grid is containing in). If I set something position attribute on the container (which solved another problem when using the container to scroll) causes double scrollbars.

Here is my Code;

<div style="width:400px;height:400px;border-style:solid;border-width:1px;position:absolute">
    <igtbl:UltraWebGrid>
        <DisplayLayout  ScrollBar="auto" TableLayout="Fixed" />
        <FrameStyle Width="100%" Height="100%" HorizontalAlign="Center">
    </igtbl:UltraWebGrid

<div>

I just added the properties which make sense for this sample, its easily reproducable with a plain grid added from the toolbox. But I can provide a full sample if needed.

Do you have any Idea how I can make sure the grid always hats its correct height?

Thanks for your help.

Greetings