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

2 cells having border, a thick border in between them

Thread ID:





45744 Jun 28,2006 02:36 AM UTC Nov 12,2009 12:06 PM UTC WinForms 8
Tags: GridControl
Leow Kah Man
Asked On June 28, 2006 02:36 AM UTC

Hi Syncfusion team, Let''s say I have 2 cells, both next to each other. Each of them having a thin border. The 2 cells now have a thick border in between them. I can programmatically make it such that if either one side of the cell already have border, don''t display a border on the neighbouring cell. However, this is quite a complicated task. I was wondering if you have a better suggestion.

Administrator [Syncfusion]
Replied On June 28, 2006 08:20 PM UTC

Hi Leow, If your cells are alternative, then by checking the even / odd columns or rows and setting Border property accordingly will be helpful. Please provide us more details, it will helpful for us to solve the issue exactly. private void gridControl1_PrepareViewStyleInfo(object sender, GridPrepareViewStyleInfoEventArgs e) { if( e.ColIndex %2 == 0) e.Style.Borders.All = new GridBorder(GridBorderStyle.Solid,Color.Black,GridBorderWeight.Thin); } Best regards, Madhan

Leow Kah Man
Replied On June 29, 2006 12:33 AM UTC

Thanks. That would work if I have borders for every cell. What if on column A (odd column), I have border, but B doesn''t? If either one has, it should show only one. It would be great if you guys can introduce a boolean property into GridControl, like ShowOnlyOneSideBorder. :)

Leow Kah Man
Replied On June 29, 2006 01:17 AM UTC

>If either one has, it should show only one. Correction to the above statement: If either one has, show that one. If both have, show only one.

Administrator [Syncfusion]
Replied On June 29, 2006 02:07 AM UTC

Hi Leow, Here is the sample with ShowOnlyOneBorder property. I hope it helps to solve your issue. Sample : GC_ShowOnlyOneSideBorder Best regards, Madhan

Leow Kah Man
Replied On June 29, 2006 07:06 AM UTC

Excellent, thank you. Will you guys be putting this as a feature in future versions of GridControl?

Administrator [Syncfusion]
Replied On June 30, 2006 12:50 AM UTC

Hi Leow, If we have enough requests, we will have this as a feature request and get it in the upcoming releases. Thanks, Madhan

Hugo Estevam Romeu Longo
Replied On November 11, 2009 07:48 PM UTC

Can you please fix the link problem? I'm having the same problem!

Jisha Joy [Syncfusion]
Replied On November 12, 2009 12:06 PM UTC


Thank you for your update. We have reported the issue with our website team and will fix it soon.



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

This page will automatically be redirected to the 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