1. Fix wrong painting of header captions with Alignment = taCenter when the column is resized below the caption text width
Change the code on line 631 in file "Sources/Next Grid/NxDisplays.pas" from
CODE
taCenter: TextPos.X := R.Left + (R.Right - R.Left) div 2 - CaptionWidth div 2;
to
CODE
taCenter: if CaptionWidth<(R.Right - R.Left) then TextPos.X := R.Left + ((R.Right - R.Left - CaptionWidth) shr 1);
2. Fix the bug with not calling DoDeselectCell from DeleteRow procedure
Change the code on line 940 in file "Sources/Next Grid/NxGrid.pas" from
CODE
if SelectedRow >= FLastVisibleRow then SetSelectedCell(SelectedColumn, FLastVisibleRow);
to
CODE
if SelectedRow >= FLastVisibleRow then
begin
DoDeselectCell(SelectedColumn,SelectedRow);
SetSelectedCell(SelectedColumn, FLastVisibleRow);
end;
begin
DoDeselectCell(SelectedColumn,SelectedRow);
SetSelectedCell(SelectedColumn, FLastVisibleRow);
end;











