GridLineColor, GridLineWidth
These two properties, not surprisingly, determine the color and width of a grid's lines between cells.
Usage |
grdGrid.GridLineColor = nRGBValue nRGBValue = grdGrid.GridLineColor grdGrid.GridLineWidth = nWidth nWidth = grdGrid.GridLineWidth |
GridLineWidth and GridLineColor do not affect the widths or colors of the RecordMark or DeleteMark columns, if they are included, nor do they affect the thickness or color of the lines between the headers. We think this takes away from the overall effect of having such fine control over the gridlines, and hope Microsoft considers extending the properties to cover the whole grid. |
Example |
* Green Column Headers grdGrid1.SetAll('BackColor',rgb(0,192,0),'Header') * Alternating white and green rows within grid * This version works only if the grid shows records in * their physical order. grdGrid1.SetAll('DynamicBackColor', ; "iif(recno()%2=1,rgb(255,255,255),rgb(0,192,0))", ; 'Column') grdGrid1.GridLineColor = RGB(255,255,255) && White lines grdGrid1.GridLineWidth = 1 && Single pixel width grdGrid1.GridLines = 2 && Vertical lines only |
See Also |
DeleteMark, Grid, GridLines, Highlight, HighlightRow, HighlightRowLineWidth, RecordMark, RGB() |