Locking Cell and Changing Cell Style UltraWebGrid

Refer this article for Column Locking / Freezing in Infragistics Ultra WebGrid

If you need to change background color for a  frozen columns then ..
backcolor property must be changed first then cells have to be locked.

[sourcecode language=’vb’]
  e.Layout.Bands(0).Columns(0).CellStyle.BackColor = Drawing.Color.Beige
  e.Layout.Bands(0).Columns(0).Header.Fixed = True[/sourcecode] and in InitializeLayout of ultraWebgrid [sourcecode language=’vb’]Private Sub ultrawebgrid_InitializeLayout(ByVal sender As Object, ByVal e As Infragistics.WebUI.UltraWebGrid.LayoutEventArgs) Handles uwgCategory.InitializeLayout

e.Layout.UseFixedHeaders = True

End Sub [/sourcecode]

 

 

 

3 thoughts on “Locking Cell and Changing Cell Style UltraWebGrid

  • December 3, 2007 at 7:12 am
    Permalink

    If I fix the columns, then the alignment of the columns and footer is distorted. Moreover, the last column is sliced off. It is shown partially.

    Reply
  • December 3, 2007 at 10:02 am
    Permalink

    Please try adding this to InitializeLayout

    Private Sub ultrawebgrid_InitializeLayout(ByVal sender As Object, ByVal e As Infragistics.WebUI.UltraWebGrid.LayoutEventArgs) Handles uwgCategory.InitializeLayout

    e.Layout.UseFixedHeaders = True

    End Sub

    Reply
  • January 16, 2008 at 2:01 pm
    Permalink

    Hi,
    Is there any way I can freeze the rows also..i.e i show date in the first column. so 30 rows for 30 days and the first row should be frozen so that even if they scroll horizontally they should be able to see the date column of the row..Hope I am clear..Any suggestions???

    Reply

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: