CRDBGrid in Berlin update1

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
cybsistemas
Posts: 118
Joined: Mon 12 Sep 2005 17:31
Location: Argentina

CRDBGrid in Berlin update1

Post by cybsistemas » Wed 19 Oct 2016 21:34

when trying to put a component in the form throws error: Argument out of range

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

Re: CRDBGrid in Berlin update1

Post by ViktorV » Thu 20 Oct 2016 12:32

The problem occurs due to the fact that Embarcadero in RAD 10.1 Berlin Update 1 has modified the code of implementation of TCustomDBGrid - the base class for our TCRDBGrid component. We will release the UniDAC version compatible with RAD 10.1 Berlin Update 1 this month.
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:
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: crcontrols240.dpk, dclcrcontrols240.dpk;
- install dclcrcontrols240.dpk;
- find and replace on your computer all copies of the crcontrols240.* and dclcrcontrols240.* files with the versions you compiled.
- restart the IDE.

Post Reply