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]
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.
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
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???