Page 1 of 1
Problem with TCRDBGrid on RAD Studio 10.1
Posted: Wed 21 Sep 2016 14:08
by helste
Hello,
I just installed my brand new RAD Studio 10.1 including Update 1.
On the fresh installation I installed IBDAC Version: 5.7.24
When I try to place a TCRDBGrid on a form, I get an error message (arguments out of range).
No way to place a grid on a form or open a form from an old project that contains a TRCDBGrid.
Any ideas?
Best regards
Helmut
Re: Problem with TCRDBGrid on RAD Studio 10.1
Posted: Thu 22 Sep 2016 10:46
by azyk
Thank you for the information, we have reproduced the described issue with the TCRDBGrid component and the new studio version.
Currently, we are testing DAC products for compatibility with RAD Studio Berlin 10.1 Update 1 and fixing detected issues.
Re: Problem with TCRDBGrid on RAD Studio 10.1
Posted: Thu 22 Sep 2016 10:56
by helste
Thanks for the answer. I received an answer vie email to my support request, where I was told, that could not be reproduced. So I sent a reply with a short video showing it.
At the moment I replaced the CRDBGrid with the standard DBGrid. Fortunately I used it only in 3 forms. So it was just 2 hours of work replacing all the grids in this 3 forms.
Have to check, if everythning works as expected though, so whenever a working version of the CCRDBGrid is available, I would restore the previous version of those forms.
Re: Problem with TCRDBGrid on RAD Studio 10.1
Posted: Thu 22 Sep 2016 12:04
by ViktorV
We have answered you, that we can't reproduce the issue, since you didn't tell, that you are using RAD Studio 10.1 Update 1.
We will investigate the described issue with the TCRDBGrid component and inform you about the results.
Re: Problem with TCRDBGrid on RAD Studio 10.1
Posted: Thu 22 Sep 2016 12:33
by helste
Great. Hope you can fix it.
I did not think, that it makes such a huge difference if I run 10.1 or 10.1 upgrade 1.
Sorry for that.
Re: Problem with TCRDBGrid on RAD Studio 10.1
Posted: Tue 27 Sep 2016 15:04
by rickyarzu
The error seems triggered by a debug on the property DefaultColWidth
commenting the row on Create this blocks the creation Error thus I think that setting it at runtime or design time should trigger the exception another time. I suppose
constructor TCRDBGrid.Create(Owner: TComponent);
begin
...
/// DefaultColWidth := 60; // DEBUG
end;
.....
Re: Problem with TCRDBGrid on RAD Studio 10.1
Posted: Wed 05 Oct 2016 15:08
by ViktorV
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.
Re: Problem with TCRDBGrid on RAD Studio 10.1
Posted: Wed 02 Nov 2016 13:55
by ViktorV
The new IBDAC version 5.7.26 with a compatible with RAD 10.1 Berlin Update 1 are available for download now.