Jump to content

Cell contents alignment in UniStringGrid


Harry Rogers

Recommended Posts

Hi,

 

For now, try:

UniStringGrid1 -> ClientEvents -> ExtEvents -> add reconfigure fn:

function reconfigure(sender, store, columns, oldStore, the, eOpts)
{
  columns[0].align = 'center';
  columns[1].align = 'left';
  columns[2].align = 'right';
}

* this solution works, if your column index > FixedCols

 

Best regards.

Link to comment
Share on other sites

  • 10 months later...

Hmm..

i have a TUniStringGrid with two Columns. The first columns shows a text, the second column shows a decimal value. I fill the values for the grid in the OnCreate event of the form.

I tryed the solution above but it aligns my second column always 'left' instead of 'right'.

 

Any ideas what i am doing wrong here?

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