Mouse Click on Col A Sorts by Col A + Col B

Hey Bruno,

Can you set up the Grid so that clicking on column A actually sorts on column A then Column B.  For example, a Grid of Automobiles might have Make and Model Columns. Clicking on Make (like BMW) will sort first by Make and secondarily by Model.

Cheers,


John

good morning John,

did you try with Grid.SortIndexes ?

When you click on column A you can do somthing like that

Grid.SortIndexes.Clear

Grid.SortIndexes.AddIndex(ColumnA,True);

Grid.SortIndexes.AddIndex(2ColumnnB,True);

Grid.QSortIndexed;

If i understand well ......

Regards

Daniele