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 - When using the grid with an Aurelius Dataset I have a problem with an assertion in the code
Summary: When using the grid with an Aurelius Dataset I have a problem with an asserti...
Status: RESOLVED FIXED
Alias: None
Product: TeeGrid for Delphi
Classification: Unclassified
Component: Grid (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: david berneda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-10 19:51 EST by Roland Kossow
Modified: 2017-02-16 05:40 EST (History)
1 user (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.