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
155
Fixing header on vertical scroll
posted

I am creating a webgrid from code and so I'm also setting all of the properties from code. I want to be able to fix my header in place when scrolling vertically, but I can't seem to find the appropriate property. Can somebody please explain how I do this. I've tried the UseFixedHeader property but my grid doesn't even appear when I use it.

 

Regards

Parents
No Data
Reply
  • 420
    posted

     

    UseFixedHeaders is to keep certain columns from scrolling right and left.

    To freeze the headers from scrolling up and down use:

    Gridname.DisplayLayout.StationaryMargins = Infragistics.WebUI.UltraWebGrid.StationaryMargins.Header.

    You'll probably need to set the grid width to something less then the total overall width of all the columns too.

    Good luck!

Children
No Data