ClearSorting problem

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
tskom
Posts: 3
Joined: Thu 27 Sep 2018 14:57

ClearSorting problem

Post by tskom » Sat 13 Oct 2018 16:51

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

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

Re: ClearSorting problem

Post by ViktorV » Tue 16 Oct 2018 10:25

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;

tskom
Posts: 3
Joined: Thu 27 Sep 2018 14:57

Re: ClearSorting problem

Post by tskom » Tue 16 Oct 2018 13:28

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 ?

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

Re: ClearSorting problem

Post by ViktorV » Thu 18 Oct 2018 08:09

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.

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

Re: ClearSorting problem

Post by ViktorV » Fri 01 Feb 2019 09:32

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.

Post Reply