Jump to content

UnimDBGrid:How to add this column grid lines?


55143681

Recommended Posts

27 minutes ago, 55143681 said:

728993192__20210721092251.thumb.jpg.a9c0179711101bc546aab868d82e0492.jpg

procedure TMainmForm.UnimFormCreate(Sender: TObject);
begin
  with UnimDBGrid1 do
  begin
    JSInterface.JSConfig('columnLines', [dgColLines in Options]);
    JSInterface.JSConfig('rowLines', [dgRowLines in Options]);
  end;
end;

 

Link to comment
Share on other sites

5 minutes ago, Sherzod said:

procedure TMainmForm.UnimFormCreate(Sender: TObject);
begin
  with UnimDBGrid1 do
  begin
    JSInterface.JSConfig('columnLines', [dgColLines in Options]);
    JSInterface.JSConfig('rowLines', [dgRowLines in Options]);
  end;
end;

 

Thank you Dear。

  • Like 1
Link to comment
Share on other sites

1 minute ago, Sherzod said:

UnimDBGrid->Options ?

void __fastcall TMainmForm::UnimFormCreate(TObject *Sender)
{
UnimDBGrid1->JSInterface->JSConfig("columnLines", "Options.Contains(dgColLines)");
UnimDBGrid1->JSInterface->JSConfig("rowLines", "Options.Contains(dgRowLines)");
}

Link to comment
Share on other sites

1 minute ago, 55143681 said:

void __fastcall TMainmForm::UnimFormCreate(TObject *Sender)
{
UnimDBGrid1->JSInterface->JSConfig("columnLines", "Options.Contains(dgColLines)");
UnimDBGrid1->JSInterface->JSConfig("rowLines", "Options.Contains(dgRowLines)");
}

UnimDBGrid1->JSInterface->JSConfig("columnLines", "UnimDBGrid1->Options.Contains(dgColLines)");

Can you check!?

Link to comment
Share on other sites

2 hours ago, Sherzod said:

Just the follow code will works well:

UnimDBGrid1->JSInterface->JSConfig("columnLines", "true");
UnimDBGrid1->JSInterface->JSConfig("rowLines", "true");

 

why use this code?

Options.Contains(dgColLines)

Link to comment
Share on other sites


Just this code :

 

if( UnimDBGrid1->Options.Contains(dgRowLines) && UnimDBGrid1->Options.Contains(dgColLines) )
    {
    UnimDBGrid1->JSInterface->JSConfig("columnLines", "true");
    UnimDBGrid1->JSInterface->JSConfig("rowLines", "true");
    }

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