AD
Administrator
Syncfusion Team
July 30, 2003 04:59 PM UTC
Here is some code. I am not sure if this is what you had in mind or not.
GridStyleInfo boldRedFont = new GridStyleInfo();
boldRedFont.Font.Bold = true;
boldRedFont.TextColor = Color.Red;
GridStyleInfo blueCell = new GridStyleInfo();
blueCell.BackColor = Color.DodgerBlue;
blueCell.Borders.Right = new GridBorder(GridBorderStyle.Solid, Color.Blue, GridBorderWeight.Thin);
blueCell.Borders.Bottom = new GridBorder(GridBorderStyle.Solid, Color.Blue, GridBorderWeight.Thin);
this.gridControl1.ChangeCells(GridRangeInfo.Cells(2,2,4,4), blueCell, Syncfusion.Styles.StyleModifyType.Override);
this.gridControl1.ChangeCells(GridRangeInfo.Cells(2,2,4,4), boldRedFont, Syncfusion.Styles.StyleModifyType.Override);
PL
Paul Laudeman
July 31, 2003 09:28 AM UTC
That's it, I just wasn't clear on the StyleModifyType options.
Thanks!