VSFlexGrid Control > VSFlexGrid Properties, Events, and Methods > VSFlexGrid Properties > TextMatrix Property |
Returns or sets the contents of a cell identified by its row and column coordinates.
[form!]VSFlexGrid.TextMatrix(Row As Long, Col As Long)[ = value As String ]
The TextMatrix property allows you to set or retrieve the contents of a cell without changing the Row property and Col property.
The following code places text into an arbitrary cell:
fg.TextMatrix(1, 1) = "Apple"
See also the Cell property, which allows you to set or retrieve text, pictures and formatting information for a cell or range of cells.
String