TAdvStringGrid LiveBindings AureliusDataset

Hi,


I use grid and other control like TEdit and TlabeledEdit.

When I use TStringGrid and scroll, my TEdit and TlabeledEdit are well refreshed.

When I use TAdvStringGrid and scroll, my TEdit and TlabeledEdit are not refreshed.

When I click on cells on TAdvStringGrid, it works well.

Is there an option I forget to put in TAdvStringGrid (I actually use default settings) ? 

Best Regards
 

At this moment, there is no built-in code in TAdvStringGrid that will interact via livebindings when a scroll in the grid happens. We do not recommend to use LiveBindings in VCL. We'd recommend to only use this when needed in FireMonkey applications.

So I decide to use TDBAdvGrid and livebindings works as expected with this grid and update my TEdit and TLabeledEdit.

But TAdvStringGrid works differently than TDBAdvGrid.
Try to asg.Bands.active and band are visible.
Try to dbag.Bands.active and band are not visible.

asg.AutoSizeColums autosize colums on all row.
dbag.AutosizeColums autosize colums on all row visible when you call it.

I'm a real big fan of TAdvStringGrid as it is for me me the best grid but I honestly never use TDBAdvGrid.

May be I need to experiment more but my first goal was to not use DB aware component if I made it with Aurelius.

"We do not recommend to use LiveBindings in VCL. We'd recommend to only use this when needed in FireMonkey applications." Is it slower ?




  1. For bands, set under grid.Columns[x].ShowBands = true for columns where you want to see bands.
    2) By design when grid.PageMode = true as when the grid doesn't have all records, it's impossible to get cell text sizes of cell text it doesn't have.

Ok.


Thanks Bruno :)