Page 1 of 1

ClearSorting problem

Posted: Sat 13 Oct 2018 16:51
by tskom
Hi,
I use trial version to try to migrate from IBX.

When I try to discard sorting (Delphi 7 Pro) using:

Code: Select all

procedure TBrForm.aCleraSortExecute(Sender: TObject);
begin
  TCRDBGrid1.ClearSorting
end;
nothing hapens neither for indicators on the header (triangles) nor for rows in the grid.
BTW dgeEnableSort is set to true for TCRDBGrid1.OptionsEx

Sorting works perfectly including multisorting but I can't discard sorting.
Am I doing something wrong?

Regards,
Tomasz

Re: ClearSorting problem

Posted: Tue 16 Oct 2018 10:25
by ViktorV
At the moment, the support of the TCRDBGRid component is discontinued.
But, all registered users of DAC products have source code of TCDBRGrid located in DAC_Install_Dir\Source\, where DAC_Install_Dir is a directory where you installed DAC product.
To solve your issue you can, for example use the following guidelines:
- change in the CRGrid.PAS file the string

Code: Select all

  FSortInfo.Clear;
to

Code: Select all

  FSortInfo.Clear;
  Reorder;

Re: ClearSorting problem

Posted: Tue 16 Oct 2018 13:28
by tskom
OK, thank you for this information.
As I try to migrate my projects I'd like to know whether this component is deprecated and I shouldn't use it?
If yes, is there alternative suggested component ?

Re: ClearSorting problem

Posted: Thu 18 Oct 2018 08:09
by ViktorV
We discontinued supporting only the TCRDBGrid visual component, but support all of our other components.
IBDAC components are descendants of the TDataSet base class and implement its interface. When working with DB-aware controls, IBDAC uses standard methods, i.e. provided by any descendant of TDataSet. Therefore, you can use any visual components that support working with TDataSet to work with IBDAC.

Re: ClearSorting problem

Posted: Fri 01 Feb 2019 09:32
by ViktorV
Thank you for the interest to our product.
If you have any questions during using our products, please don't hesitate to contact us - and we will try to help you solve them.