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.

GridControl setting boder style

Thread ID:

Created:

Updated:

Platform:

Replies:

17048 Jul 29,2004 10:23 AM Jul 29,2004 11:05 AM Windows Forms 3
loading
Tags: GridControl
Sean Greer
Asked On July 29, 2004 10:23 AM

ES 2.0.6.0 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 10:32 AM

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

Sean Greer
Replied On July 29, 2004 10:50 AM

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 11:05 AM

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

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.

;