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.
Unfortunately, activation email could not send to your email. Please try again.

Cell Range Borders

Thread ID:

Created:

Updated:

Platform:

Replies:

115878 Feb 17,2014 09:19 AM Feb 26,2014 04:16 AM Windows Forms 1
loading
Tags: GridControl
Dib Oglesby
Asked On February 17, 2014 09:19 AM

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!

Anish George [Syncfusion]
Replied On February 26, 2014 04:16 AM

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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;