Harry Rogers Posted January 19, 2016 Share Posted January 19, 2016 Hi Could not find any reference to this having been asked. How to set alignment for given columns in a UniStringGrid ? Many thanks Link to comment Share on other sites More sharing options...
Sherzod Posted January 19, 2016 Share Posted January 19, 2016 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 More sharing options...
Harry Rogers Posted January 19, 2016 Author Share Posted January 19, 2016 Many Thanks Delphi Developer. I guess this will be added as a property of TUniGridColumn at some point ? All the best Link to comment Share on other sites More sharing options...
Jean-Marc Kiener Posted December 5, 2016 Share Posted December 5, 2016 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 More sharing options...
Sherzod Posted December 5, 2016 Share Posted December 5, 2016 Hi, Have you a "FixedCols" ? Best regards. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now