Jump to content

Refreshing UniDbGrid


FunnyBlue

Recommended Posts

Hi all,

 

I have read some topics about column sorting is not working when using clicking column title method.

It works on VCL app mode, but not work on web browser mode, after first clicking.

 

I solved this problem like this way:

 

procedure TFListe.UniDBGridListeCDSTitleClick(Column: TUniDBGridColumn);

begin

UniMainModule.ListeCDS.DisableControls;

try

UniMainModule.ListeCDS.IndexFieldNames:= Column.FieldName;

UniMainModule.ListeCDS.First;

Self.UniDBGridListeCDS.Refresh;

finally

UniMainModule.ListeCDS.EnableControls;

end;

end;

 

I use ClientDataSet (named ListeCDS in code above) for caching data on server.

 

 

Regards.

 

Hur AKDULGER

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...