Grid Control

This control displays and operates tabular data. It enables complete flexibility to sort, merge, and format tables containing strings.

Library Name

GRIDLibCtl

DLL Name

Mscegrid.dll

The Grid control supports the following properties:

BackColor ColData RowHeightMin
CellAlignment CollsVisible RowIsVisible
CellBackColor ColPos RowPos
CellFontBold ColPosition RowPosition
CellFontItalic Cols Rows
CellFontName ColSel RowSel
CellFontSize ColWidth ScrollBars (Grid)
CellFontStrikethrough FillStyle (Grid) ScrollTrack
CellFontUnderline FocusRect SelectionMode
CellFontWidth ForeColor (Grid) Sort
CellForeColor ForeColorSel Text (Grid)
CellHeight GridColor TextArray
CellLeft GridLines TextMatrix
CellTop, GridLineWidth TextStyle
CellWidth HighLight TopRow
CellTextStyle LeftCol Version
Clip Redraw WordWrap (Grid)
Col Row  
ColAlignment RowHeight  

The Grid control supports the following methods:

The Grid control supports the following events:

Remarks

The Row and Col properties specify the current cell in a Grid. The Text property references the contents of the current cell. If the text is too long to display in a cell, and the WordWrap property is set to True, the text wraps to the next line within the same cell. To display the wrapped text, you may need to increase the cell's column width (ColWidth property) or row height (RowHeight property).

Use the Cols and Rows properties to determine the number of columns and rows in a Grid control.