Sorting with node

Hi Bruno,

it's possible use sort if the grid has nodes?

And .... is possible make a sort within the node ?



Thank's

When nodes are added via grouping, this is happening automatically

Example:

procedure TForm1.FormCreate(Sender: TObject);
begin
  AdvStringGrid1.RowCount := 50;
  AdvStringGrid1.RandomFill(false,10);
  AdvStringGrid1.Group(1);
  AdvStringGrid1.SortSettings.Show := true;
end;

When you click column headers, sorting is performed within groups.
Programmatically you can invoke this sort via AdvStringGrid1.QSortGroup;

Hi Bruno,

    i add nodes via grid.AddNode(aRow,Span:integer) without usig group.

Anyway i do a grid sort (with customer name + surname) before add a nodes, now this is ok.



Thank's



Daniele