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
75
Freeze Columns in UltraWebGrid
posted
Dear All,
 
I am trying to freeze(make fixed)  the first four columns displayed in the grid with the following code.I am also merging the cells based on the requirement. Please look at the image attached to know in detail.
 
 protected void UltraGrid_InitializeLayout(object sender, LayoutEventArgs e)
    {
        e.Layout.UseFixedHeaders = true;
        UltraGrid.Bands[0].Columns[0].Header.Fixed = true;
        UltraGrid.Bands[0].Columns[1].Header.Fixed = true;
        UltraGrid.Bands[0].Columns[2].Header.Fixed = true;
        UltraGrid.Bands[0].Columns[3].Header.Fixed = true;
        UltraGrid.Bands[0].Columns[4].Header.Fixed = true;
    }
 
When I try to freeze the first four columns, the rest of columns are getting disturbed.When i try the sample with out freezing its working fine.Can you please let me know the Solution with some sample code to merge the cells and also freeze the columns.
 
Thanks & Regards
ZSLINC.
Parents
  • 475
    posted

     als there is a trick handled by Infragistics. they shown the column freeze example only for a grid having no CellStyle.Wrap = true. 

     

    if you have multilined text in your grid this columnfreezing code will collapse the entire gird's look and feel. i have requested to fix this issue but i got a reply it is a feature request and will be fixed in the next release. ( i faced this issue an year before) but till this date i haven't seen any fix for this. 

     

    if you know any work around kindly let me know. 

     Arun.K.S

Reply Children