[]
Gets or sets a value indicating whether a grid is displayed in the designer workspace.
public bool DrawGrid { get; set; }
Type | Description |
---|---|
bool |
|
When set to true
, a grid overlay appears in the designer, aiding in the alignment and precise placement of report elements.
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.