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

GridControl setting boder style

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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 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

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

;