TStringGird: Typo in EGridException "FixedRows can't be >= RowCount"
Original Reporter info from Mantis: Hansaplast
-
Reporter name: Hans Luijten
Original Reporter info from Mantis: Hansaplast
- Reporter name: Hans Luijten
Description:
I have a TStringGrid with FixedRows=1 and RowCount=1 (set in the ObjectInspector).
In my application I add and remove rows (either by using DeleteRow(Index) or by reducing RowCount), and on occasion the grid becomes empty (with just the fixrow left), which produces the exception:
"Project XYZ raised exception class 'EGridException' with message: FixedRows can't be >= RowCount"
In my case I did screw up my own code, but the exception message is not correct.
Seems that a TStringgrid works just find with FixedRows=1 and RowCount=1 since I can set it just fine in the ObjectInspector.
I suspect it should be "FixedRows can't be > RowCount".
(if there are no rows besides the FixedRows, then RowCount=FixedRows)
Additional information:
MacOS X v10.6.6, XCode 3.2.5
Mantis conversion info:
- Mantis ID: 18590
- Version: 0.9.31 (SVN)
- Fixed in version: 1.2.4
- Fixed in revision: r44872 (#597c21be)
- Monitored by: » Hansaplast (Hans Luijten)