Erreur TCRDBGrid dans Rad studio 10.1 Berlin update 1

Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
NGUIMTSA
Posts: 5
Joined: Sun 08 Feb 2015 14:26

Erreur TCRDBGrid dans Rad studio 10.1 Berlin update 1

Post by NGUIMTSA » Thu 06 Oct 2016 10:42

Impossible d'utiliser TCRDBGrid dans Rad studio 10.1 berlin update 1
Erreur signalée : Argument hors limite lorsqu'on veut poser ce composant sur une fiche.
Version sdac 7.3.13 professionnel et sdac24 version d'essai 7.3.14

ViktorV
Devart Team
Posts: 2299
Joined: Wed 30 Jul 2014 07:16

Re: Erreur TCRDBGrid dans Rad studio 10.1 Berlin update 1

Post by ViktorV » Thu 06 Oct 2016 14:41

We have already fixed this issue. This fix will be included in the next build of DAC products.
All registered users of DAC products have source code of TCRGrid located in DAC_Install_Dir\Source\, where DAC_Install_Dir is a directory where you installed DAC product.
To solve the issue, you can perform the following steps:
- open the CRGrid.pas file and replace implementation of the TCRDBGrid.CanEditShow method in it with the following:

Code: Select all

function TCRDBGrid.CanEditShow: boolean;
begin
  if (Columns.Count = 0) or (Assigned(SelectedField) and (SelectedField is TMemoField)) then
    Result := False
  else
    Result := inherited CanEditShow;
end;
- save changes;
- open IDE and delete Devart Controls package from [Components]->[Install Packages] ;
- recompile the following packages: crcontrolsXX.dpk, dclcrcontrolsXX.dpk;
- install dclcrcontrolsXX.dpk;
- restart the IDE.

Post Reply