StrataFrame Forum
Home
»
StrataFrame Application Framework - V1
»
WinForms (How do I?)
Enhancedlist Dynamically Change BackColor
http://forum.strataframe.net/Topic2438.aspx
By Brad Vick
-
8/24/2006
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
By Trent L. Taylor
-
8/24/2006
You were just about there
All you need to add is one line of code:
e.UseRowAppearance = True
Otherwise the RowAppearance settings are ignored.