Created
September 26, 2023 07:16
-
-
Save pmalicki11/7293292cc53ddf005370cd20d2005362 to your computer and use it in GitHub Desktop.
Coloring controls in row rules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ControlSettings styleOrange = new ControlSettings(); | |
styleOrange.StyleSetName = "styleOrange"; | |
styleOrange.BackColor = System.Drawing.Color.Orange; | |
// or like this | |
// styleOrange.BackColor = System.Drawing.Color.FromArgb(255, 165, 0); | |
this.edvOrderHead.AddRowRule(new RowRule("OrderHed.WrongShipBy", RuleCondition.Equals, true, new RuleAction[] { | |
RuleAction.AddControlSettings(this.oTrans, "OrderHed.RequestDate", styleOrange) | |
})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment