[Patch] TDBGrid, for some field types inplace editor incorrectly sets MaxLength
Original Reporter info from Mantis: lacak @lacak.sk
-
Reporter name: LacaK
Original Reporter info from Mantis: lacak @lacak.sk
- Reporter name: LacaK
Description:
There is in procedure TCustomDBGrid.SelectEditor done setting of MaxLength for TStringFields when InplaceEditor is selected.
Problem is when we tab from "string field" to not "string field" (for example numeric field). In this case MaxLength is not reset and remains last set-ed.
So when we move from char(1) column to integer column, then only one digit can be typed into integer column.
Patch resets MaxLength to 0 if SelectedField is not TStringField.
Mantis conversion info:
- Mantis ID: 22789
- Version: 1.0.1 (SVN)
- Fixed in version: 1.1 (SVN)
- Fixed in revision: 38618 (#ca8b5626)
- Target version: 1.2.0
- LazTarget: 1.2