Jump to content

How To Change The Background And Font Colour Of the GroupHeader Property For TUniDBGrid's Column?


Frederick

Recommended Posts

Yes. I copied the function header as well when carrying out a a cut and paste.

However, I found out what the problem is.

If the TUniDBGrid's WebOptions | Paged property is False AND the datasource is empty, the code in the afterLayout event will be ignored.

How can I fix this?

Link to comment
Share on other sites

2 hours ago, Frederick said:

However, I found out what the problem is.

If the TUniDBGrid's WebOptions | Paged property is False AND the datasource is empty, the code in the afterLayout event will be ignored.

How can I fix this?

Try it for the whole case:

procedure TMainForm.UniFormReady(Sender: TObject);
begin
   with grdGrid do begin
      if (not Assigned(DataSource)) or (DataSource.DataSet.IsEmpty) or (not DataSource.DataSet.Active) then begin
         //JSInterface.JSCall('getStore().load', []);
         JSInterface.JSCall('fireEvent', ['afterlayout', JSControl]);
      end;
   end;
end;

 

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...