在运行时添加和删除行
我正在与 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当您说
Table
时,您只是想要一个用于任意应用程序数据的网格组件,还是想要显示数据库表中的数据的组件?如果是前者,请使用
TStringGrid
或TListView
,并将其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
, orTListView
with itsViewStyle
property set tovsReport
, or the third partyTVirtualTreeView
.If the latter, use
TDBGrid
.