Tuesday, May 16, 2017

Column Locking / Freezing in Infragistics Ultra Win Grid

Column Locking / Freezing in Infragistics Ultra Win Grid
If you want to freeze first few columns like EXCEL and horizontally scroll rest of the columns in Ultra Win Grid here you go…
Event :
VB.net code
Private Sub ugMain_InitializeLayout (sender As Object, e As InitializeLayoutEventArgs) Handles ugMain.InitializeLayout
 
        e.Layout.UseFixedHeaders = True
        e.Layout.Bands(0).Columns(1).Header.Fixed = True
        e.Layout.Bands(0).Columns(2).Header.Fixed = True
 
End Sub
 
 
 
C#.net Code
 
   Protected void ugMain_InitializeLayout (object sender, InitializeLayoutEventArgs e)
{
       e.Layout.UseFixedHeaders = true;
       e.Layout.Bands(0).Columns(1).Header.Fixed = true;
       e.Layout.Bands(0).Columns(2).Header.Fixed = true;
 
}
 

No comments:

Post a Comment