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
close icon

Cell Range Borders

Anyone know how to set a border around the cells in a range of cells in a grid control?  I don't want to set the border of each individual cell within a range, but rather a border around the entire range.


Thanks!

1 Reply

AG Anish George Syncfusion Team February 26, 2014 09:16 AM UTC

Hi Dib,

 

Thank you for using Syncfusion products.

 

We would like to let you know that you can use the CoveredRanges option and can merge the required range of cells and then you can apply the border to it. Please refer the below code snippet.

 

C#:

this.gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(2,2,4,8));

this.gridControl1[2, 2].Borders.All = new GridBorder(GridBorderStyle.Solid, Color.Red, GridBorderWeight.Thin);

 

Please let us know if you need any further assistance.

 

Regards,

Anish


Loader.
Live Chat Icon For mobile
Up arrow icon