Components for Delphi and C++ Builder.

Go to Russian forum
Go to
It is currently 07 Oct 2022, 10:02

All times are UTC

Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: 04 Jul 2019, 14:51 

Joined: 24 Aug 2018, 13:15
Posts: 46
Location: Brazil

I'm using TDBGridEh and DataSource linked with TClientDataSet.
The SortLocal on DBGridEh is set to True and I declared the unit EhLibCDS.pas
If the ClientDataSet is not active when i try sort some column clicking on grid title, delphi's returns closed ClientDataSet error.

i've fixed with this on EhLibCDS.Pas:
procedure TCDSDatasetFeaturesEh.ApplySorting(Sender: TObject; DataSet: TDataSet; IsReopen: Boolean);
  DS: TDataSet;
  CDS: TCustomClientDataSetCrack;
  DatasetFeatures: TDatasetFeaturesEh;
  i: Integer;
  IndexFields, IndexDescFields, MasterFields: String;
  SortOrder: TSortOrderEh;
  grid: TCustomDBGridEh;
  if Sender is TCustomDBGridEh then
    if (TCustomDBGridEh(Sender).SortLocal) then
      if (not DataSet.Active) then
      if DataSet.RecordCount = 0 then

it is the right fix to this problem?

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group