MerryMadDad
Programmer
Is there anyone out there who uses TMS software components, namely AdvStringGrid ?
I have a problem with sorting.
Grid layout
group name salary (Column headers)
.
.possible blank rows
.
Group1 Bob 10,000
Fred 7,000
Jim 12,000
.
.
. blank rows
.
.
.
Group2 Jane 10,000
Jill 7,000
Julie 12,000
.
.possible blank rows
.
I want to be able to sort on one column only (Salary) with the smallest salary first, but I want to keep all the rows within their group i.e. male / female and I would like the Group number to remain at the top row in its group. I would also like to keep the blank rows where ever they appear, as other data may be inserted in the blank rows for in each group later. At present Fred and Jill are sorted to the first rows in the whole grid, the blank spaces disapearing
Can anyone help ?
Thanks
Robert
I have a problem with sorting.
Grid layout
group name salary (Column headers)
.
.possible blank rows
.
Group1 Bob 10,000
Fred 7,000
Jim 12,000
.
.
. blank rows
.
.
.
Group2 Jane 10,000
Jill 7,000
Julie 12,000
.
.possible blank rows
.
I want to be able to sort on one column only (Salary) with the smallest salary first, but I want to keep all the rows within their group i.e. male / female and I would like the Group number to remain at the top row in its group. I would also like to keep the blank rows where ever they appear, as other data may be inserted in the blank rows for in each group later. At present Fred and Jill are sorted to the first rows in the whole grid, the blank spaces disapearing
Can anyone help ?
Thanks
Robert