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?
ADAdministrator Syncfusion Team July 29, 2004 09:32 AM
Try this code.
this.m_Grid[nRow, n].Borders.Bottom = new GridBorder(GridBorderStyle.Solid);
SGSean GreerJuly 29, 2004 09: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?
ADAdministrator Syncfusion Team July 29, 2004 10:05 AM
Grid\Src\Base\Styles\GridBorderStyleEditor.cs(21): internal class GridBorderStyleEditor : UITypeEditor