Grid Lines

3 Sep 20201 minute to read

The MinorScaleStyle and MajorScaleStyle properties of SfDateTimeRangeNavigator used to customize the minor and major grid lines. Following properties are available in each scale style to configure the grid lines.

  • c#
  • [C#]
    SfDateTimeRangeNavigator rangeNavigator = new SfDateTimeRangeNavigator();
    ...
    rangeNavigator.MajorScaleStyle.ShowGridLines = true;
    rangeNavigator.MajorScaleStyle.GridLineColor =  0xF109D7;
    rangeNavigator.MajorScaleStyle.GridLineWidth = 10;
    rangeNavigator.MinorScaleStyle.ShowGridLines = true;
    rangeNavigator.MinorScaleStyle.GridLineColor = Color.Red;
    rangeNavigator.MinorScaleStyle.GridLineWidth = 3;
    rangeNavigator.MinorScaleStyle.GridLinePathEffect = new DashPathEffect(new float[] { 4, 4}, 0);