LCL, grids, do row auto numbering starting on first non-fixed row, from graeme and flavio

git-svn-id: trunk@23632 -
This commit is contained in:
jesus 2010-02-04 20:19:44 +00:00
parent 2e36f3b61e
commit 5e049e36b3

View File

@ -8501,8 +8501,9 @@ begin
if FTitleStyle<>tsNative then if FTitleStyle<>tsNative then
DrawColumnText(aCol,aRow,aRect,aState); DrawColumnText(aCol,aRow,aRect,aState);
if (goFixedRowNumbering in Options) and (FixedCols >= 1) and (aCol = 0) then if (goFixedRowNumbering in Options) and (FixedCols >= 1) and
DrawCellAutonumbering(aCol, aRow, aRect, IntToStr(aRow)); (aCol = 0) and (aRow >= FixedRows) then
DrawCellAutonumbering(aCol, aRow, aRect, IntToStr(aRow-FixedRows+1));
end; end;
{ TCustomStringGrid } { TCustomStringGrid }