True DBGrid for .NET has a rich object model with the following elements:
True DBGrid for .NET provides a rich set of properties, methods, and events that enable you to develop sophisticated database applications. The organization imposed by True DBGrid's object model makes it easier to work with such a large feature set.
Objects and collections that refer to visual entities, such as columns, can be customized in the designer or in code. Objects and collections that refer to abstract entities, such as arrays and bookmarks, are only available in code.
Two controls are available in the .NET toolbox for addition into a project:
True DBGrid .NET control. | |
True DBDropDown .NET control. |
The namespace for True DBGrid also contains definitions for the following objects:
Represents a column of data within a grid. | |
Represents a column of data relative to a split. | |
Represents the gridlines which separate items in the grid. | |
Represents the horizontal scroll bar and its properties. | |
Encapsulates the print preview window and its properties. | |
Encapsulates page setup and print job settings. | |
Represents a group of adjacent columns that scroll as a unit. | |
Encapsulates font, color, picture, and formatting information. | |
Encapsulates both the Values collection and valueitem properties. | |
Allowable column input values, with optional translation. | |
Represents the vertical scroll bar and its properties. |
A collection is an object used to group similar data items, such as grid columns or styles. In general, a group of similar items in True DBGrid is implemented as a collection. Since a collection is an object, it can be manipulated in code just like any other object. True DBGrid exposes the following collections:
Contains zero or more C1DataColumn objects in a grid. | |
Contains zero or more C1DisplayColumn objects in a grid. | |
Contains zero or more C1DataColumn objects in the grouping area. | |
Contains zero or more selected row indexes. | |
Contains zero or more C1DataColumn objects that represent selected columns. | |
Contains one or more Split objects in a grid. | |
Contains built-in and user-defined Style objects for a grid. | |
Contains zero or more ValueItem objects for a column. |
The following sections provide a brief overview of True DBGrid's objects and collections.
Send comments about this topic to ComponentOne. Copyright © ComponentOne LLC. All rights reserved. |