If view.IsRowSelected(e.RowHandle) AndAlso e.Column.FieldName = 'Length' AndAlso lengthRule.IsFit(e.CellValue, view.GetDataSourceRowIndex(e.RowHandle)) Thenĭim ruleAppearance As AppearanceObject = (Tr圜ast(lengthRule.Rule, FormatConditionRuleAppearanceBase)).AppearanceĮ.Appearance.BackColor = ruleAppearance.BackColor GridFormatRule lengthRule = new GridFormatRule() ĪddHandler gridView.RowCellStyle, Sub(s, e)ĭim view As GridView = Tr圜ast(s, GridView) LengthRuleCondition.Condition = FormatCondition.GreaterOrEqual
FormatConditionRuleValue lengthRuleCondition = new FormatConditionRuleValue()