Hi Vinod,
Please try the 'Like' operator to format the grid using GridConditionalFormatDescriptor. The following code sets the TextColor/BackColor of those record field cells whose Col1 values equal to 'W'’:
GridConditionalFormatDescriptor Descriptor1 = new GridConditionalFormatDescriptor();
Descriptor1.Appearance.AnyRecordFieldCell.TextColor = Color.Red;
Descriptor1.Appearance.AnyRecordFieldCell.BackColor = Color.AliceBlue;
Descriptor1.Expression = "[Col1] Like 'W'";
this.gridGroupingControl1.TableDescriptor.ConditionalFormats.Add(Descriptor1);
Please refer to the attached sample for implementation.
GGCConditionalFormatSample.zipBest Regards,
Haneef