Inserting
and Deleting a row or column of cells
Many of the cell operations implemented
by TCustomGrid, from which TStringGrid descends, are protected. Fortunately,
the TStrings class, of which the StringGrid's Rows and Cols property are
an instance of, offers useful functions for handling an array of strings.
Below, I demonstrate, using two sample functions, how to insert and delete
StringGrid columns. A similar approach can be used for the rows.
KEYWORDS: ColCount, RowCount
|