Page 1 of 1

ODAC 6.90.0.56 : TCRDBGrid no cell editor for ftWideMemo

Posted: Thu 09 Dec 2010 11:16
by jantoni
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

Posted: Thu 09 Dec 2010 14:06
by AlexP
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.