You can look how it is implemented in RichViewActions.
This grid is in TableSizeRVFrm.pas. It is shown in TRVActionInsertTable.ShowTableSizeDialog (in RichViewActions.pas).
This form uses TRVGrid - a lightweight grid component included in RichViewActions. You can try using TDrawGrid instead.