Please be advised that this ComponentOne software tool is accompanied by various sample projects and/or demos which may make use of other development tools included with ComponentOne Studio Enterprise.
ICursor and OLEDB Samples
Sample |
Description |
Apptbook |
This sample illustrates how to implement a drag-and-drop operation in the grid, how to interactively set the grid's color, and also how to use Unbound Extended mode. This sample uses the TDBGrid control. |
GENLEDGR |
This sample illustrates a number of important points about how splits can be used effectively, and how several additional features (such as outlining and updating unbound columns) can be used. This sample uses the TDBGrid control. |
Invntry |
This sample illustrates how styles can be used effectively.It uses the grid's AddRegexCellStyle method and FetchRowStyle event. This sample uses the TDBGrid and TDBDropDown controls. |
OwnrDraw |
This is a small sample that shows how you can use GDI calls in grid's OwnerDraw event. This sample uses the TDBGrid control. |
TRUBRWSE |
This sample illustrates a number of useful database application techniques, including how to save and reload grid layouts stored in a binary file. This sample uses the TDBGrid control. |
True DBGrid Extra Samples
Sample |
Description |
Ads |
This sample uses the TDBGrid and TDBDropDown controls. |
APIToX |
This sample shows how you can populate XArrayDB from an ODBC database. The advantage is that there is no overhead of DAO, ADO or RDO. This sample uses the TDBGrid control. |
DAOToX |
This sample dumps everything from a recordset to an XArrayDB.The difference between this sample and the RDOToXarray is only the redimensioning of the XArrayDB.With the recordset we always know how many records we have so we can ReDim the XArrayDB up front. This sample uses the TDBGrid control. |
Odbc7 |
This sample shows how you can use ODBC API to populate the list in Unbound extended mode. This sample uses the TDBGrid control. |
OwnerDraw |
This is a small sample that shows how you can use GDI calls in grid's OwnerDraw event. This sample uses the TDBGrid control. |
RDOToX |
This sample dumps everything from a resultset to an XArrayDB.The advantage is that after this is done you can disconnect from the server and all work is done locally.The obvious disadvantage is the concurrency issues. This sample uses the TDBGrid control. |
Transaction |
This sample allows you to modify, add or delete any number of cells and then optionally revert to the original values.Before any editing, click the BeginTrans button. Use of transaction in this fashion is possible only in unbound mode.In bound mode the data control will commit all pending transactions when you change rows. This sample uses the TDBGrid control. |
Ub1DAO |
This sample uses Unbound 1 mode and a DBGrid to display records from a recordset.This unbound mode is provided for compatibility with older products. New applications should use the UnboundExtended mode. This sample uses the TDBGrid control. |
Ub2ADO |
This sample shows how you can populate the grid in Unbound extended mode from an ADO recordset. This sample uses the TDBGrid control. |
Ub2ARR |
This sample uses a generic data class.For small data sets you should use DataMode 4 - Storage with XArrayDB. This sample uses the TDBGrid control. |
Ub2DAO |
This sample populates the list with the DAO recordset in Unbound extended mode. This sample uses the TDBGrid control. |
Ub2RDO |
This sample populates the list with the RDO Resultset in Unbound extended mode. This sample uses the TDBGrid control. |