Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 1781

Summary: When using the grid with an Aurelius Dataset I have a problem with an assertion in the code
Product: TeeGrid for Delphi Reporter: Roland Kossow <roland.kossow>
Component: GridAssignee: david berneda <david>
Status: RESOLVED FIXED    
Severity: enhancement CC: roland.kossow
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description Roland Kossow 2017-02-10 19:51:40 EST
As soon as I open a dataset that is associated with a TeeGrid I receive an assertion error that Seletced Row < 0 ...

procedure TGridSelection.SetRow(const Value: Integer);
begin
  if Row<>Value then
  begin
    Assert(Value>=0,'Error: Selected Row < 0');

    DoChangeRow(Value);

    ResetRange;

    DoChanged;
  end;
end;
Comment 1 david berneda 2017-02-16 05:40:27 EST
I've fixed this. The assertion is wrong (it should check against < -1 , not < 0).

"-1" means no row is selected (no cell gets selected at all).

Workaround is to compile with assertions off compiler option.

I'm very close to release a "nightly build v1.01" with this and many more fixes, I'll notify you when its available.