How to show over 200 rows in a TStringGrid using LiveBindings?

I have a TDataSource under which a TClientDataset bound to a TStringGrid . I did this by right-clicking on the grid, selecting " Link to DB Datasource... " and selecting DataSource. This LiveBindings setting is for me.

When I run the application, the grid is filled with only 200 rows, although there are 5,000 records in the dataset.

I can not find any documentation on how to change the number of displayed lines or correctly allow the user to scroll through all the data.

I found a solid value of 200 in TBindScopeDBEnumerator.Create in the Data.Bind.DBScope module, and when I increase it to 10000 , I see all 5000 lines in the grid, but it looks like a hack.

What is the correct way to show over 200 rows in a TStringGrid?

+6
source share
2 answers

You need to change TBindDBGridLink.BufferCount in design mode from -1 to whatever value you need.

+3
source

You can change TBindDBGridLink.BufferCount to the desired value -1 . But it is better to set TBindDBGridLink.AutoBufferCount to True .

+5
source

Source: https://habr.com/ru/post/904252/


All Articles