private void InitForms() { // Apply default filter - show only invoices with discount _filterForm = new FilterEditor(c1FlexGrid1); var expression = new CombinationExpression(); expression.Expressions.Add(new OperationExpression() { PropertyName = "Discount", FilterOperation = FilterOperation.GreaterThan, Value = 0 }); _filterForm.SetExpression(expression); // Apply default rule - bold text for major invoice records _rulesForm = new ConditionalFormattingForm(c1FlexGrid1); var rule = new C1.Win.RulesManager.Rule() { Name = "Major Invoices", Expression = "=[ExtendedPrice] > 1000", Style = new ItemStyle() { FontStyle = FontStyle.Bold } }; _rulesForm.Rules.Add(rule); }
void btnOpenCondFormatting_Click(object sender, System.EventArgs e) { ConditionalFormattingForm cf = new ConditionalFormattingForm(this.radGridView1.MasterTemplate, null); cf.Owner = this.FindForm(); ThemeResolutionService.ApplyThemeToControlTree(cf, this.radGridView1.ThemeName); cf.Show(); }
internal override void PerformAction() { _conditionalFormattingForm = new ConditionalFormattingForm(_countryShortName, _countryConfigFacade); if (_conditionalFormattingForm.ShowDialog() == DialogResult.Cancel) { _actionIsCanceled = true; } }