【问题标题】:ListBox Item limit on Delphi XE5 FireMonkeyDelphi XE5 FireMonkey 上的 ListBox 项目限制
【发布时间】:2013-10-22 16:24:18
【问题描述】:

我正在使用列表框组件和 LiveBindings 列出字段的内容,但该表有 14443 条记录,而 lisbox 仅显示 200 条记录。 delphi XE5 的版本是试用许可证。列表框的限制线是什么?手机运行的是 Android。

谢谢。

【问题讨论】:

标签: delphi listbox firemonkey delphi-xe5 livebindings


【解决方案1】:

可以保存多个记录的 LiveBindings 组件,例如 TCustomBindListTCustomBindGridListTCustomBindGridLinkTCustomLinkListControlToField,有一个名为 BufferCount 的属性,默认值为 -1。当 LiveBindings 的内部 db 枚举器 (TBindScopeDBEnumerator) 初始化时,检查此属性 (BufferCount) 的值,如果其值小于 0,则设置 200 元素的缓冲区。 因此,要克服这个限制,您需要将 BufferCount 的值更改为更高的值或 TDataSet 的 RecordCount 值。

另一种选择是将AutoBufferCount 属性设置为true,这会将内部BufferCount 值设置为TDataSet 的记录数。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-07-15
    • 2014-02-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-09-26
    • 1970-01-01
    相关资源
    最近更新 更多