ComponentOne True DBGrid Pro 8
Adding the True DBGrid Pro 8.0 Components to the Toolbox

TDBGrid and TDBDropDown are the components used to display data in a tabular format that can be browsed, edited, added to, and deleted.

True DBGrid Pro 8.0 includes two separate grid controls, one for legacy (ICursor) data sources such as the Visual Basic built-in Data control, and one for OLE DB data sources such as the ADO Data Control. The two controls are functionally equivalent; they differ only in how they access data. However, you will need to choose the correct grid depending upon the type of data source used, as the following table illustrates.

To use the True DBGrid components, they must be added to the Visual Studio Toolbox:

  1. Open the Visual Basic IDE (Microsoft's Integrated Development Environment). Make sure the Toolbox is visible (if necessary, select Toolbox in the View menu).

  2. To set up the True DBGrid components to appear on their own tab, right-click anywhere in the Toolbox and select Add Tab from the context menu. Enter a tab name, for example, "True DBGrid 8", in the dialog box. Select the new tab.

  3. Right-click the gray area under that tab and select Components from the context menu. The Components dialog box opens.

  4. In the Components dialog box, find and select ComponentOne True DBGrid Pro 8.0. Click OK.

Note that the class names are the same regardless of which control is used. However, the type library name used to qualify object references is TrueDBGrid80 for the legacy control, and TrueOleDBGrid80 for the OLE DB control.

Also note that the OLE DB control can only be used with Visual Basic 6.0 or higher.

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback