[英]Update a TDBGrid in C++ Builder
Embarcadero's documentation on a lot of the DB components is incomplete and asks that users update it. Embarcadero关于许多数据库组件的文档不完整,要求用户对其进行更新。 As a result I can't figure out how to get my DBGrid
to update with a new SQL statement. 结果,我不知道如何使用新的SQL语句更新DBGrid
。
I have it call my SQL Statement just fine to begin with, however when I change the SQL statement and call the same update statement it still displays the original Grid. 首先,我称它为SQL语句很好,但是当我更改SQL语句并调用相同的update语句时,它仍然显示原始网格。
I am using a TDataSource
object to connect to my TADOQuery
in order to fill my DBTable
. 我正在使用TDataSource
对象连接到我的TADOQuery
以便填充我的DBTable
。 When I update my TADOQuery
and have it rerun the query, then call the Update Function on my DBGrid
, I see no difference. 当我更新TADOQuery
并使其重新运行查询,然后在DBGrid
上调用Update Function时,我发现没有区别。 Is there something extra I need to be doing with the TDataSource
? 我还需要对TDataSource
吗?
Edit : I copied the TDataSource
, deleted the original, closed and opened Builder and it worked fine. 编辑 :我复制了TDataSource
,删除了原始的,关闭并打开的Builder,它工作正常。
复制TDataSource,删除原始的,关闭并打开的Builder,它工作正常。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.