property G2antt.GridLineStyle as GridLinesStyleEnum
Specifies the style for gridlines in the list part of the control.

 TypeDescription 
   GridLinesStyleEnum A GridLinesStyleEnum expression that specifies the style to show the control's horizontal or vertical lines.  
By default, the GridLineStyle property is exGridLinesDot. The GridLineStyle property has effect only if the DrawGridLines property is not zero. The GridLineStyle property can be used to specify the style for horizontal or/and vertical grid lines.  Use the GridLineColor property to specify the color for grid lines. Use the LinesAtRoot property specifies whether the control links the root items of the control. Use the HasLines property to specify whether the control draws the link between child items to their corresponding parent item. The grid lines are shown only in the columns part of the controls, if you require the grid lines in the chart view use the DrawGridLines property of the Chart object. 

The following VB sample shows dash style for horizontal gridlines, and solid style for vertical grid lines:

GridLineStyle = GridLinesStyleEnum.exGridLinesHDash Or GridLinesStyleEnum.exGridLinesVSolid

The following VB/NET sample shows dash style for horizontal gridlines, and solid style for vertical grid lines:

GridLineStyle = exontrol.EXGANTTLib.GridLinesStyleEnum.exGridLinesHDash Or exontrol.EXGANTTLib.GridLinesStyleEnum.exGridLinesVSolid

The following C# sample shows dash style for horizontal gridlines, and solid style for vertical grid lines:

GridLineStyle = exontrol.EXGANTTLib.GridLinesStyleEnum.exGridLinesHDash | exontrol.EXGANTTLib.GridLinesStyleEnum.exGridLinesVSolid;

The following Delphi sample shows dash style for horizontal gridlines, and solid style for vertical grid lines:

GridLineStyle := Integer(EXGANTTLib.GridLinesStyleEnum.exGridLinesHDash) Or Integer(EXGANTTLib.GridLinesStyleEnum.exGridLinesVSolid);

The following VFP sample shows dash style for horizontal gridlines, and solid style for vertical grid lines:

GridLineStyle = 36
 


Send comments on this topic.
1999-2017 Exontrol.COM, Software. All rights reserved.