Enhancedlist Dynamically Change BackColor


Author
Message
Brad Vick
Brad Vick
StrataFrame Novice (51 reputation)StrataFrame Novice (51 reputation)StrataFrame Novice (51 reputation)StrataFrame Novice (51 reputation)StrataFrame Novice (51 reputation)StrataFrame Novice (51 reputation)StrataFrame Novice (51 reputation)StrataFrame Novice (51 reputation)StrataFrame Novice (51 reputation)
Group: Forum Members
Posts: 33, Visits: 88
I am trying to highlight rows in an enhancedlist based on a value in the grid. Below what I have coded in an attempted to make this happen, but I must be missing something. Any help would be appreciated.






Private Sub grdMain_RowPopulating(ByVal e As MicroFour.StrataFrame.UI.Windows.Forms.DevEx.EnhancedRowPopulatingEventArgs) Handles grdMain.RowPopulating

With CType(e.BusinessObject, Business.AssembliesBO)

If .DocuntationToDate = False Then

e.RowAppearance.BackColor = Drawing.Color.Yellow

End If

End With

End Sub



Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
You were just about there Smile  All you need to add is one line of code:

e.UseRowAppearance = True

Otherwise the RowAppearance settings are ignored.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search