Hello,
i have a problem with using groupColumn and narrowDown parallel in advstringgrid.
Version of TMS Components is 6.5.0.0.
For simplier testing i added a single button with narrowDown command to ASG14-Demo of the grid.
The onclickevent-handler of the button locks like this:
>>procedure TForm1.Button4Click(Sender: TObject);
var
I: Integer;
begin
AdvStringGrid1.NarrowDown('4',AdvStringGrid1.ColumnByHeader('Country'));
end;<<
The following problems occured while testing:
- problems with expand/contract of grouped rows ( e.g. visible rows after "contract all" button was clicked)
- EListError in function GetCellGraphic(ACol,ARow: Integer):TCellGraphic; ("if Assigned(GraphicObjects[ACol,ARow]) then")
CallStack of EListError:
>>:7c812afb kernel32.RaiseException + 0x52
:005fd111 TSparseList.Get + $39
:005fd111 TSparseList.Get + $39
:005feafa TStringGrid.GetObjects + $16
AdvGrid.TAdvStringGrid.GetCellGraphic(0,-414)
AdvGrid.TAdvStringGrid.ContractNode(-414)<<
Is there something to take care of while using filtering and grouping at the same time?
Sorry, unfortunately, the features grouping & narrowdown are right-now mutually exclusive as internally these both rely in a slightly different way on row hiding.