FormatRuleExpressionEditorForm 使用
Posted Harry
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了FormatRuleExpressionEditorForm 使用相关的知识,希望对你有一定的参考价值。
/// <summary> /// 高级查询 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void button1_Click(object sender, EventArgs e) { GridFormatRule condition = new GridFormatRule(); condition.Rule = new FormatConditionRuleExpression(); currentView.FormatRules.Add(condition); FormatConditionRuleExpression rule = condition.Rule as FormatConditionRuleExpression; if (rule == null) return; using (ExpressionEditorForm form = new FormatRuleExpressionEditorForm(rule, null, rule.Expression)) { form.StartPosition = FormStartPosition.CenterParent; if (form.ShowDialog(this) == DialogResult.OK) { rule.Expression = form.Expression;//查询表达式 } } }
以上是关于FormatRuleExpressionEditorForm 使用的主要内容,如果未能解决你的问题,请参考以下文章