Jump to content

Sorting DBGrid


alesf76

Recommended Posts

I've tried to find something in the forum and in the documentation, but I didn't found the answer: how can I make work the sorting of the columns ? If I click on one sortable column I get the grid refreshed but the sorting is not applied.

Link to comment
Share on other sites

Before I used this option to sort the columns but now I can not do this, has anything changed?

 

function headerclick (ct, column, e, t, eOpts)

{

   Frame.ClientDataSet.getStore (). Sort (column.dataIndex);

}

 

function store.afterCreate (sender)

{

   sender.remoteSort = false;

}

Link to comment
Share on other sites

  • 1 year later...

@Sherzod

Thanks for your information about GridColumnSort demo.

I studied this example and am wondering: Where are those data records coming from? Refer to other demos, there is one command for data records:

UniMainModule.LoadClientFromStream(ClientDataSet1,'biolife.cds');

Thanks.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...