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
137
Outlook GroupBy and GroupBy Styles
posted

Let me first describe the situation I am trying to achieve.  I would like a hierarchical display with separate fonts and style details set programmatically on each grouping header.  There may be multiple columns being grouped.  I am using only one Band so using the GroupByRowStyle does not work for my situation.  I have tried using the InitializeGroupByRow event:

Private Sub USIGrid_InitializeGroupByRow(ByVal sender As Object, ByVal e As Infragistics.WebUI.UltraWebGrid.RowEventArgs) Handles Me.InitializeGroupByRow
e.Row.Cells(0).Style.BackColor = Drawing.Color.Azure
e.Row.Cells(0).Style.ForeColor = Drawing.Color.Black
End Sub

This was unsuccessful.  I have also tried using a programmatic approach on the preRender event:

Private Sub SetGroupByStyles(ByVal aobjRows As Infragistics.WebUI.UltraWebGrid.RowsCollection, _
ByVal aobjGroupFontInformation As ArrayList, _
ByVal aintGroupByLevel As Integer)
Dim objRow As Infragistics.WebUI.UltraWebGrid.UltraGridRow

For Each objRow In aobjRows
If TypeOf (objRow) Is Infragistics.WebUI.UltraWebGrid.GroupByRow Then
objRow.Style.CssClass = String.Empty
objRow.Style.CustomRules =
CStr(aobjGroupFontInformation.Item(aintGroupByLevel))
SetGroupByStyles(objRow.Rows, aobjGroupFontInformation, aintGroupByLevel + 1)
End If
Next
End Sub

This also does not work.  I see that the row has the css values correctly in the object while rendering.  However the grid reflects none of the style changes that I have made.  Any suggestions?

Parents
No Data
Reply
  • 137
    posted

    I have made a simple webGrid application in which I can re-create the issue.  Is this a desired affect of using an XML browser type?  Is there a separate construct which needs to be used to set row styles when using the XML browser type or is this just a bug?  We are currently using version 7.3.20073.38 of the Infragistics webGrid.

    Thanks,
    Kyle

Children