I m trying to remove all empty rows from a flexgrid, but it is giving error Subscript out of range, my code is as under
Want to do this.
Attachment 94521
Code:
Dim dRow As Integer
For dRow = 1 To fgData.Rows - 1
'' ERROR "Subscript out of range" while dRow=23
If fgData.TextMatrix(dRow, 0) = "" Then
fgData.RemoveItem dRow
End If
Next
Attachment 94521