To add a function to resort a grid after adding new rows, simply add the following procedure to NxGrid.pas:
CODE
procedure TNextGrid.ReSortGrid();
var
i: Integer;
begin
for i := 0 to Columns.Count -1 do
if (Columns[i].Sorted) then
SortColumn(Columns[i], Columns[i].SortKind = skAscending);
end;
var
i: Integer;
begin
for i := 0 to Columns.Count -1 do
if (Columns[i].Sorted) then
SortColumn(Columns[i], Columns[i].SortKind = skAscending);
end;
and add
CODE
procedure ReSortGrid;
to the public section of TNextGrid's delaration.