Round corners for cells and ranges ?

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

Nazim YENIER

3 Replies

CB Clay Burch Syncfusion Team 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);
}


NY Nazim YENIER 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


MS Mohamed Suhaib Fahad A. Syncfusion Team 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 [email protected] for further queries on licensing.

Thanks,
Fahad
Grid.WPF Team
Syncfusion Inc.,

Loader.
Up arrow icon