Thanks for your response
I used TCustomDrawGrid and achieved what I wanted, I implemented it as follows, I don't know if it's the right one but it worked.
In the type section carry out the following statement, I put part of the code that is before and after so you can get an idea of where to locate it
type
{ Tfsms }
TMyCustomGrid = Class(TCustomDrawGrid);
Tfsms = class(TForm)
BCMaterialDesignButton1: TBCMaterialDesignButton;
BCPanel1: TBCPanel;
BCPanel2: TBCPanel;
benviar: TButton;
blimpiar: TButton;
DBGrid1: TDBGrid;
dssms: TDataSource;
ebcodcli: TEdit;
then in the activate event of the form, I wrote the following
TMyCustomGrid(DBGrid1).RowHeights[0]:=20;
doing it that way, it worked perfectly, but the compiler throws me the following warning...
Class Type "TDBGrid" and "TMyCustomGrid" are not related
If I implement it badly, I ask you please indicate the correct way to do it.

Thanks for the support