在运行时添加和删除行

发布于 2025-01-01 21:45:43 字数 100 浏览 3 评论 0原文

我正在与 C++ 构建器一起制作 VCL 表单应用程序。

我对此很陌生,现在我正在尝试寻找一个允许我制作表格并默认显示某些行的组件,但它还需要允许我在运行时添加和删除行。

I am working with C++ builder making VCL form application.

I am pretty new at this, and right now I'm trying to look for a component that allows me to make a table and have it show certain rows by default, but it also needs to allow me to add and delete rows during run time.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

逆光下的微笑 2025-01-08 21:45:43

当您说Table时,您只是想要一个用于任意应用程序数据的网格组件,还是想要显示数据库表中的数据的组件?

如果是前者,请使用 TStringGridTListView,并将其 ViewStyle 属性设置为 vsReport,或者第三方 < a href="http://www.soft-gems.net" rel="nofollow">TVirtualTreeView

如果是后者,请使用TDBGrid

When you say Table, do you just want a grid component for arbitrary app data, or do you want something that displays data from a database table?

If the former, use TStringGrid, or TListView with its ViewStyle property set to vsReport, or the third party TVirtualTreeView.

If the latter, use TDBGrid.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文