CRDBGrid in Berlin update1
-
- Posts: 118
- Joined: Mon 12 Sep 2005 17:31
- Location: Argentina
CRDBGrid in Berlin update1
when trying to put a component in the form throws error: Argument out of range
Re: CRDBGrid in Berlin update1
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.
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.