Page 1 of 1
					
				CRDBGrid in Berlin update1
				Posted: Wed  19 Oct 2016 21:34
				by cybsistemas
				when trying to put a component in the form throws error: Argument out of range
			 
			
					
				Re: CRDBGrid in Berlin update1
				Posted: Thu  20 Oct 2016 12:32
				by ViktorV
				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.