我在(TMS)CustomCellDraw
事件中使用以下代码DBAdvGrid
来增加行高。
procedure TForm1.DBAdvGrid1CustomCellDraw(Sender: TObject; Canvas: TCanvas;
ACol, ARow: Integer; AState: TGridDrawState; ARect: TRect; Printing: Boolean);
begin
DBAdvGrid1.RowHeights[ARow]:=120;
end;
如何使其避免增加第 0 行,这是网格中的第一行,包含列名/标题?- 我希望该行保持不变,而所有其他行都应通过上述代码调整大小。基本上它应该忽略行索引 0 并从行索引 1 开始