VB Code:
  1. Public Sub InsertRow(msf As MSFlexGrid, row As Integer)
  2.  
  3.     Dim intRow As Integer
  4.     Dim intCol As Integer
  5.    
  6.     ' Move the rows down
  7.     For intRow = MSFlexGrid1.Rows - 1 To row Step -1
  8.         For intCol = 0 To MSFlexGrid1.Cols - 1
  9.             MSFlexGrid1.TextMatrix(intRow, intCol) = MSFlexGrid1.TextMatrix(intRow - 1, intCol)
  10.         Next
  11.     Next
  12.    
  13.     ' Blank the row
  14.     For intCol = 0 To MSFlexGrid1.Cols - 1
  15.         MSFlexGrid1.TextMatrix(row, intCol) = ""
  16.     Next
  17.    
  18. End Sub

Usage:
InsertRow MSFlexGrid1, 5