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 Quote 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. Quote 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 Quote 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? Quote 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.