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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridControl setting boder style

Thread ID:





17048 Jul 29,2004 02:23 PM UTC Jul 29,2004 03:05 PM UTC WinForms 3
Tags: GridControl
Sean Greer
Asked On July 29, 2004 02:23 PM UTC

ES What am I doing wrong here? I just want to set the border style to solid and I''m trying this code: this.m_Grid[nRow, n].Borders.Bottom.Style = GridBorderStyle.Solid; Unfortunately it tells me that Syncfusion.Windows.Forms.Grid.GridBorder.Style is read-only. How can I programmatically set the border style?

Administrator [Syncfusion]
Replied On July 29, 2004 02:32 PM UTC

Try this code. this.m_Grid[nRow, n].Borders.Bottom = new GridBorder(GridBorderStyle.Solid);

Sean Greer
Replied On July 29, 2004 02:50 PM UTC

Yep, I figured that one out. I was looking at the CellStyles sample and noticed that the property grid is able to change a cell''s border style. How is that? Is there a custom propertydescriptor in the mix?

Administrator [Syncfusion]
Replied On July 29, 2004 03:05 PM UTC

Yes. Grid\Src\Base\Styles\GridBorderStyleEditor.cs(21): internal class GridBorderStyleEditor : UITypeEditor


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

Live Chat Icon For mobile
Live Chat Icon