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
334
Fixed header while scrolling
posted

I would like to keep the grid's header fixed while scrolling. I have tried setting StationaryMargins="Header", but didn't work. This caused all cells of the grid to be merged.

Any suggestions on how to achieve this?

 

Parents
No Data
Reply
  • 45049
    Suggested Answer
    posted

    duanbrito said:
    I have tried setting StationaryMargins="Header", but didn't work.

    This is how you keep the grid's header from scrolling when the grid is scrolled vertically.

    You also have to have set the grid's DisplayLayout.TableLayout property to "Fixed" for this to work.  This is done for you automatically if you set StationaryMargins through the designer; if you did this through code, then you need to set TableLayout through code as well.

    duanbrito said:
    This caused all cells of the grid to be merged.

    Assuming that this isn't resolved by setting TableLayout, can you provide a screenshot as to what you mean, or possibly a sample application?  Either way, you can attach these to your response post from the "Options" tab.

Children
No Data