Configuring ILAxis grids
Grid line properties are configured the same way as ILAxis main axis lines. The only difference is, for grid lines
on creation the default values differ. Grid lines are drawn dashed, with light color on width 1 per default.
The following example demonstrates how to set properties for grid lines. First the grid lines corresponding to the X axis are deactivated. An alternative stipple pattern and a green color is than choosen for the grid lines of the Y axis. Since we draw Plot2DGraphs, no Z axis is visible.
ILPanel panel = ILPanel.Create();
panel.SetBounds(10,10,500,400);
Controls.Add(panel);
// Create sample data
ILArray a = ILMath.rand(51,2) * 2;
a[":;0"] += ILMath.linspace(20,75,51);
a[":;1"] += ILMath.linspace(10,95,51);
panel.Graphs.AddPlot2DGraph(a);
// configure grids
panel.Axes[AxisNames.XAxis].Grid.Visible = false;
ILLineProperties gridprops = panel.Axes[1].Grid;
gridprops.Color = Color.Green;
gridprops.Pattern = 3 + 24; // <- bitmask defines stipple
gridprops.Style = LineStyle.UserPattern;
gridprops.PatternScale = 2;
The output should look similar to this picture: 
The complete example can be downloaded as VS2005 solution here.