GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoSheet Class / CreateGrid Method
Example
In This Topic
    CreateGrid Method (GoSheet)
    In This Topic
    Create a GoGrid object.
    Syntax
    protected virtual GoGrid CreateGrid()

    Return Value

    the grid that is the primary object in this group
    Example
    If you override this method, you may want the definition to do some of the things that the standard definition does:
    protected virtual GoGrid CreateGrid() {
      GoGrid grid = new GoGrid();
      grid.Selectable = false;
      grid.CellSize = new SizeF(25, 25);
      grid.OriginRelative = false;
      grid.LineDashStyle = DashStyle.Custom;
      grid.MajorLineColor = Color.LightGray;
      grid.MajorLineFrequency = new Size(4, 4);
      grid.Style = GoViewGridStyle.None;
      return grid;
    }
    See Also