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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Cell borders

Thread ID:





90979 Oct 28,2009 09:54 AM UTC Oct 29,2009 03:17 PM UTC WinForms 1
Tags: DocIO
Adrian Gingell
Asked On October 28, 2009 09:54 AM UTC


I am having trouble setting different styles for borders in the same cell. For example, I want a single line bottom border but no top, left or right border. I have tried many combinations for CellFormat properties but can't get it to work. The following is my latest attempt:

fieldCell.CellFormat.Borders.Bottom.LineWidth = 0.5f;
fieldCell.CellFormat.Borders.Bottom.BorderType = BorderStyle.Single;
fieldCell.CellFormat.Borders.Top.LineWidth = 0f;
fieldCell.CellFormat.Borders.Top.BorderType = BorderStyle.None;
fieldCell.CellFormat.Borders.Left.LineWidth = 0f;
fieldCell.CellFormat.Borders.Left.BorderType = BorderStyle.None;
fieldCell.CellFormat.Borders.Right.LineWidth = 0f;
fieldCell.CellFormat.Borders.Right.BorderType = BorderStyle.None;

Any advice on how to achieve this would be welcome.


Jafrin [Syncfusion]
Replied On October 29, 2009 03:17 PM UTC

Hi Adrian,

Thank you for your patience.

We are able to see the mentioned issue in “Table border style”. You can workaround this issue by setting “BorderStyle.Cleared” instead of using “BorderStyle.None”. Could you please find the sample from the below link.


Could you please report the issue through Direct Trac developer Support System https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents because you can have the solution from a support engineer and a guaranteed response time. Thank you for your participation in Syncfusion,s Community forum.

Please let us know if you have any questions.

Jafrin J


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon 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.Close Icon