ArcGIS Pro 2.6 API Reference Guide
Grid Property (GridStyleItem)
Example 

ArcGIS.Desktop.Mapping Namespace > GridStyleItem Class : Grid Property
Gets or sets the ArcGIS.Core.CIM.CIMMapGrid of the map grid style item.
Syntax
public CIMMapGrid Grid {get; set;}
Public Property Grid As CIMMapGrid
Exceptions
ExceptionDescription
This property must be called within the lambda passed to QueuedTask.Run
Example
GridStyleItem gridItem = null;
CIMMapGrid grid = await QueuedTask.Run<CIMMapGrid>(() =>
{
  return gridItem.Grid;
});
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

GridStyleItem Class
GridStyleItem Members