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
280
cell back color....
posted

Hello, I'm trying to change the focused cell on a ultra grid to have a different back color.  The following code works if I turn off appstyling

 

Private Sub ProductiveGrid_InitializeLayout(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs) Handles Me.InitializeLayout
        ' Allow sorting in the grid.
        'e.Layout.Override.HeaderClickAction = HeaderClickAction.SortSingle

        ' Apply an ActiveCellAppearance and ActiveRowAppearance
        ' to make the search results easier to see.
        If (Not e.Layout.Appearances.Exists("ActiveCell")) Then
            Dim activeCellAppearance As Infragistics.Win.Appearance = e.Layout.Appearances.Add("ActiveCell")
            activeCellAppearance.BackColor2 = Color.Yellow
            activeCellAppearance.BackGradientStyle = 2 ' GradientStyle.Vertical
        End If
        e.Layout.Override.ActiveCellAppearance = e.Layout.Appearances("ActiveCell")

        If (Not e.Layout.Appearances.Exists("ActiveRow")) Then
            Dim activeRowAppearance As Infragistics.Win.Appearance = e.Layout.Appearances.Add("ActiveRow")
            activeRowAppearance.BackColor2 = Color.Goldenrod
            activeRowAppearance.BackGradientStyle = 2 ' GradientStyle.Vertical
        End If
        e.Layout.Override.ActiveRowAppearance = e.Layout.Appearances("ActiveRow")
    End Sub

 

how do I do this in the appstyle designer?