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.

2 cells having border, a thick border in between them

Thread ID:

Created:

Updated:

Platform:

Replies:

45744 Jun 27,2006 10:36 PM Nov 12,2009 07:06 AM Windows Forms 8
loading
Tags: GridControl
Leow Kah Man
Asked On June 27, 2006 10:36 PM

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 04:20 PM

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 28, 2006 08:33 PM

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 28, 2006 09:17 PM

>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 28, 2006 10:07 PM

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 03:06 AM

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

Administrator [Syncfusion]
Replied On June 29, 2006 08:50 PM

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 02:48 PM

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

Jisha Joy [Syncfusion]
Replied On November 12, 2009 07:06 AM

Hi,

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

Regards,
Jisha

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.

;