Horizontal and Vertical Grid line color

Hi,

Is it possible to set separate grid colors for horizontal and vertical grid lines in GridControl?

The GridControl provides options to show and hide the horizontal and vertical grid line separately but can we also set different colors to them?

regards,


1 Reply

RB Ragamathulla B Syncfusion Team August 23, 2012 05:21 AM UTC

Hi Dev,

Thank you for your interest in syncfusion products,

You can change the border style by using the following code.

this.gridControl1.RowStyles[2].Borders.Right = new GridBorder(GridBorderStyle.Dotted, Color.LightBlue, GridBorderWeight.ExtraThick);

Please refer to the following UG link which illustrates the same.

http://help.syncfusion.com/UG/User%20Interface/Windows%20Forms/Grid/Documents/519howtochangethelookofacellsborder.htm

http://help.syncfusion.com/UG/User%20Interface/Windows%20Forms/Grid/Documents/526howtochangethelookofacolumnsborder.htm

Let me know if you have any further concerns.

Regards,
Ragamathullah B

Loader.
Up arrow icon