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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Round corners for cells and ranges ?

Thread ID:

Created:

Updated:

Platform:

Replies:

88812 Aug 12,2009 03:53 PM UTC Sep 7,2009 06:59 AM UTC WPF 3
loading
Tags: GridControl
Nazim YENIER
Asked On August 12, 2009 03:53 PM UTC

Hi,
How can I have round corners for simple cells, spanned cells and cell ranges (corner radius ) ?

Nazim YENIER

Clay Burch [Syncfusion]
Replied On August 13, 2009 03:29 PM UTC

There is no built-in support for rounded corner cells or range spans. It is straight-forward to hide all the cell borders in a GridControl. You can hide all borders with this code:

gridControl1.Model.TableStyle.Borders.All = null;


But in the current 7.3.0.20 release, to draw the borders rounded would require that you use a custom celltype. However, in the Vol 3 refresh build that is coming out next week, there is a new event, GridControl.CellRendered event that you could use to draw rounded corners.

//remove the standard borders and subscribe to an event to draw your own.
gridControl1.Model.TableStyle.Borders.All = null;
gridControl1.CellRendered += new GridCellRenderEventHandler(gridControl1_CellRendered);

//the event handler code...
void gridControl1_CellRendered(object sender, GridCellRenderEventArgs e)
{
Pen p = new Pen(Brushes.Black, .3);
e.DrawingContext.DrawRoundedRectangle(null, p, e.RenderCellArgs.CellRect, 5, 5);
}

Nazim YENIER
Replied On August 25, 2009 10:44 AM UTC

Hi,

Appearently Volume 3 is still in evaluation version. The latest version on Syncfusion site seems the 7.3.0.20

When is the Volume 3 will be disponible for use ?

Sincerely

Nazim YENIER

Mohamed Suhaib Fahad A. [Syncfusion]
Replied On September 7, 2009 06:59 AM UTC

Hi Nazim,

The latest 7.3.0.20 is a full release version for use, If you want to use the full version without the evaluation then you would have to contact your sales manager. Please mail to support@syncfusion.com for further queries on licensing.

Thanks,
Fahad
Grid.WPF Team
Syncfusion Inc.,

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.

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

;