Now that you can connect to the database to retrieve data and show it in the TDBGrid, it's very tempting to make changes to this data.
既然您可以连接数据库来检索数据,并可以在TDBGrid中进行显示,就必定非常希望能对数据进行更改。
This is still only a TDBGrid, and a more powerful display can be made in the last step, where you'll dynamically create and add data-aware controls.
这里仍然只有一个TDBGrid,在下一步中,我们可以制作一个更强大的显示界面,在那里,您将动态创建和添加数据感知控件。
As an example, the second page of the PageControl can contain a TDBGrid control with the DataSource property pointing to the TDataSource component, as shown in the screenshot below.
作为示例,PageControl的第二个页面可以包含附带指向TDataSource组件的datasource属性的TDBGrid控件,如下方截屏所示。
If you pass true as argument, you'll be taken to the record that was just changed back (otherwise, if you're in a TDBGrid, you may not notice any effect of calling the UndoLastChange method).
如果您传递true作为参数,那么系统会把您引到刚刚改回的记录那里(否则,如果是在TDBGrid中,您可能不会注意到调用UndoLastChange方法的效果)。
However, for desktop applications, it would be nice if you could modify the contents, and if some of the visual components (like the TDBGrid) actually moved forward and backwards through a dataset.
但是对于台式机应用程序,如果可以修改内容,并且某些可视化组件(如tdbgrid)可在数据集中向前和向后移动,那将会很好。
However, for desktop applications, it would be nice if you could modify the contents, and if some of the visual components (like the TDBGrid) actually moved forward and backwards through a dataset.
但是对于台式机应用程序,如果可以修改内容,并且某些可视化组件(如tdbgrid)可在数据集中向前和向后移动,那将会很好。
应用推荐