We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

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.
Live Chat Icon For mobile
Up arrow icon