ODAC 6.90.0.56 : TCRDBGrid no cell editor for ftWideMemo

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
jantoni
Posts: 7
Joined: Tue 13 Jun 2006 07:56

ODAC 6.90.0.56 : TCRDBGrid no cell editor for ftWideMemo

Post by jantoni » Thu 09 Dec 2010 11:16

Hello,

the fieldtype ftWideMemo seems not to be estimated in TCRDBGrid cell editors.

You can test it with "Select Text From user_Views"

Regards

Jörg Antoni

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Post by AlexP » Thu 09 Dec 2010 14:06

Hello,


Thank you for the information.
We have reproduced the problem.
We will fix this problem in the next version.
CRDBGrid is a free component with open source code,that's why you can change the code yourself
In the CRGrid.pas file you should replace the following code:

in the TCRColumn.CanBeSorted method:

Result := {$IFNDEF DAC600} (Field.FieldKind = fkData) and {$ENDIF} not (Field.DataType in [ftFmtMemo,
ftMemo{$IFNDEF VER4}, ftOraClob {$ENDIF}])

with

Result := {$IFNDEF DAC600} (Field.FieldKind = fkData) and {$ENDIF} not (Field.DataType in [ftFmtMemo, ftWideMemo,
ftMemo{$IFNDEF VER4}, ftOraClob {$ENDIF}])

in the TCRDBGrid.IsOnButton method:

Result := Column.Field.DataType in [ftMemo,ftFmtMemo
{$IFNDEF VER4}, ftOraClob {$ENDIF}]

with

Result := Column.Field.DataType in [ftMemo,ftFmtMemo, ftWideMemo
{$IFNDEF VER4}, ftOraClob {$ENDIF}]


in the TCRDBGrid.DrawColumnCell method:

isDrawButton := Column.Field.DataType in [ftMemo, ftFmtMemo
{$IFNDEF VER4}, ftOraClob {$ENDIF}];

with

isDrawButton := Column.Field.DataType in [ftMemo, ftFmtMemo, ftWideMemo
{$IFNDEF VER4}, ftOraClob {$ENDIF}];

and reinstall the TCRDBGrid component.

Post Reply