RobYost Posted March 4, 2017 Share Posted March 4, 2017 In case anyone needs to know how to do this: gMileage.Cells[6, i] := '<div align="right">' + format('%.1f', [ds.FieldByName('Start').AsFloat]) + '</div>'; I am new to HTML and maybe some of you are too. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 5, 2017 Share Posted March 5, 2017 Hi, Thank you, Also you can try to use this approach too: http://forums.unigui.com/index.php?/topic/6219-cell-contents-alignment-in-unistringgrid/&do=findComment&comment=31786 Best regards. Quote Link to comment Share on other sites More sharing options...
RobYost Posted March 5, 2017 Author Share Posted March 5, 2017 function reconfigure(sender, store, columns, oldStore, the, eOpts) { columns[0].align = 'center'; columns[1].align = 'left'; columns[2].align = 'right'; } Thanks for the reply. I don't know anything about javascript, if that is even what is used in your example. Is there somewhere you recommend to read about this? For example where the events are described? I would not have thought to look in the reconfigure event. Also, is it more efficient to use the client events? What is the advantage of your example. Once again thank you for your example. 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.