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
30
Column Locking in UltraWebGrid
posted

I am using UltraWebGrid and I need to freeze the 1st column which is displayed. Following is the code which I used but it does not seem to work somehow..

 Protected Sub grdGrid_InitializeLayout(ByVal sender As Object, ByVal e As Infragistics.WebUI.UltraWebGrid.LayoutEventArgs) Handles grdGrid.InitializeLayout
        grdGrid.DisplayLayout.UseFixedHeaders = True
        grdGrid.DisplayLayout.Bands(0).Columns(20).Header.Fixed = True

    End Sub

column 20 is the 1st column which is getting displayed. However as the function ends the column is shifted back to 19th.
How am I supposed to freeze the column while scrolling ?

Parents
No Data
Reply
  • 3732
    posted

    Hello,

    The code is fine and this is what you need to freeze a column. This should work. I have more questions to figure out what the actual issue is.

    1) Which version of NetAdvantage Controls are you using?

    2) What kind of browser are you using?

    3) Is this behavior browser specific?

    4) Are you using any AJAX technology? If yes, then please describe the details.

    Please let me know your response.

    Thanks

     

Children