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 ?