Skip to content

Instantly share code, notes, and snippets.

@pmalicki11
Created September 26, 2023 07:16
Show Gist options
  • Save pmalicki11/7293292cc53ddf005370cd20d2005362 to your computer and use it in GitHub Desktop.
Save pmalicki11/7293292cc53ddf005370cd20d2005362 to your computer and use it in GitHub Desktop.
Coloring controls in row rules
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