Jump to content

How to change height and width of a Stringrid


asapltda

Recommended Posts

Hi

 

I want to change the height and width of the cells of a string grid , height = 90 width = 90 , in design mode seen in that size, but in execution only the width is changed, as I can do ?

 

Use delphi XE2 , Windows 10 home

 

 

I want to change the height and width of the cells of a string grid , height = 90 width = 90 , in design mode seen in that size, but in execution only the width is changed, as I can do ? Use delphi XE2 , Windows 10 home

Link to comment
Share on other sites

  • 2 weeks later...

Hi,

 

That instruction , exchange all existing StringGrid in the application ?

 

yes, height will be changed for all

 

 

If only what I require this specific size , in a specific way , as it should ?

 

Do you mean for only one ?!

Link to comment
Share on other sites

Hi,

 

Then try this:

 

1. UniServerModule->CustomCSS...

.my-stringgrid .x-grid-cell {
    height: 90px;
}

2. UniStringGrid1->ClientEvents->UniEvents-> beforeInit fn:

function beforeInit(sender, config)
{
    config.cls = "my-stringgrid";
}

Best regards.

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