Script(s)

what I learn is what u c

Locking Cell and Changing Cell Style UltraWebGrid

with 6 comments

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.

  e.Layout.Bands(0).Columns(0).CellStyle.BackColor = Drawing.Color.Beige
  e.Layout.Bands(0).Columns(0).Header.Fixed = True

and in InitializeLayout of ultraWebgrid

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

e.Layout.UseFixedHeaders = True

End Sub 

 

 

 

Advertisements

Written by gchandra

October 2, 2007 at 11:07 am

6 Responses

Subscribe to comments with RSS.

  1. 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.

    Tushar

    December 3, 2007 at 7:12 am

  2. 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

    gchandra

    December 3, 2007 at 10:02 am

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

    Sairam

    January 16, 2008 at 2:01 pm

  4. Hola

    Puedo identificar cuales fueron las celdas que cambiaron de color cuando el usuario hizo doble clik…

    aun y cuando tengo la propiedad AllowUpdate = No

    ?????

    Patricia

    July 22, 2008 at 1:11 pm

  5. Hi Tushar,
    Did you overcome the issue of the alignment issue? I am havin the same issue.

    Mani

    August 11, 2009 at 7:42 am

    • Hi Mani, were you able to fix the issue? I am also facing the same.

      P

      September 24, 2009 at 2:46 pm


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: