Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
5520
Conditional Formatting
posted

ConditionGroup conditionGroup = new ConditionGroup(); OperatorCondition operatorConditionA; OperatorCondition operatorConditionB; ConditionValueAppearance CondValue = new ConditionValueAppearance(); Appearance condAppearance; object objValue1 = 10.1, objValue2 = 19.7; //Customize appearance condAppearance = new Infragistics.Win.Appearance(); condAppearance.BackColor = Color.White; condAppearance.ForeColor = Color.Blue; operatorConditionA = new OperatorCondition(ConditionOperator.GreaterThan, objValue1); operatorConditionB = new OperatorCondition(ConditionOperator.LessThan, objValue2); conditionGroup.Add(operatorConditionA); conditionGroup.Add(operatorConditionB); conditionGroup.CombineOperator = LogicalOperator.And; CondValue.Add(conditionGroup, condAppearance); UltraGrid1.DisplayLayout.Bands[0].Columns["Grade"].ValueBasedAppearance = CondValue; Assume I have the following values in column "Grade": { 7, 8, 10, 10.1, 10.2, 10.3, 15, 18, 19.6, 19.7, 19.9 } I set column decimal format to 0, so visible values become: { 7, 8, 10, 10, 10, 15, 18, 19, 19, 19 } I do the following conditional formatting and I obtain the following values affected: { 15, 18 } What I want is compeltely different, I want the conditional formatting to work on cell original value { 10.2, 10.3, 15, 18, 19.6 } and show me the following cells affected: { 10, 10, 15, 18, 19 }

Parents Reply Children
No Data