Hi Dan,
There is no built-in support for setting the grid's borders in a GridControl. You could derive the Windows.Panel control and add a grid to it. You could set the Panel''s DockPadding.All = 1 and set the panel''s BackColor to the color you want to see. Also set the BorderStyle on both the grid and panel to none. Below is a code snippet
public class MyGridControl : Panel
{
public GridControl Grid = new GridControl();
public MyGridControl():base()
{
this.DockPadding.All = 1;
this.BackColor = Color.SlateBlue;
this.BorderStyle = BorderStyle.None;
this.Grid.Dock = DockStyle.Fill;
this.Grid.BorderStyle = BorderStyle.None;
this.Controls.Add(this.Grid);
}
}
If you want to set a row border in a grid , you can try the below code.
this.grid.Model.RowStyles[3].Borders.All = new GridBorder(GridBorderStyle.Solid);
Here is a forum thread that discuss with the different technique for drawing the borders in a grid.
http://www.syncfusion.com/support/forums/message.aspx?&MessageID=52120Best regards,
Haneef