TMSFMXGrid problem sorting hidden rows

I created a new c++ project in Rad Studio 10.2 with UI Pack with just a TMSFMXGrid and a menu.  The initial grid was 10 rows x 5 columns.  In column 1 (from 0), I entered 1-9 in consecutive rows to number each row.  I setup a menu item to do Grid->HideRow(3);after which the rows were 1,2,4,5,6,7,8,9 which is what I expect.  After clicking column 1, row 0 to sort, the rows were 1,2,4,5,6,7,8, (blank).  After sorting a few more times, all rows were 5 except the last row was still (blank).

Please use The helper functions RealToDisplRow to convert the index of the column to the correct value used internally.

Thanks for the suggestion but it doesn't help.  I tried
Grid->HideRow(Grid->RealToDisplRow (3)) and got the same incorrect
results after sorting.

Setting row height to 0 instead of hiding rows solves the problem.