[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Design.Designer.DrawGrid

DrawGrid Property

DrawGrid

Gets or sets a value indicating whether a grid is displayed in the designer workspace.

Declaration
public bool DrawGrid { get; set; }
Property Value
Type Description
bool

true if the grid is displayed; otherwise, false. The default is false.

Remarks

When set to true, a grid overlay appears in the designer, aiding in the alignment and precise placement of report elements.

Examples

You can configure this property during the designer's initialization or set it later as needed.

// For example, you can add your own button to toggle the grid off:
void Button_OnClick(object sender, EventArgs e)
{
	designer.DrawGrid = false;
}
// Or you can enable it during the designer's initialization:
designer.DrawGrid = true;
// Note: the user can change the grid visibility using the buttons on the tool panel. You can restrict this by using the ‘ToolPanel’ property.