ComponentOne True DataControl 8.0
User Events Mode

Setting the DataMode property to 2 - User Events causes a TData control to function in user event mode.

User events mode is provided for advanced users who need to create their own custom data source. In this mode, the programmer has full control over the data and specifies the behavior of the custom data source by writing Visual Basic code to handle special True DataControl events: UserReadData, UserWriteData, UserAddData, UserDeleteRow, and UserFindData. These events work as follows:

If you are familiar with ComonentOne True DBGrid unbound mode, you will find the True DataControl user events mode easy to understand. It uses the same events, although True DataControl calls them ‘User’ instead of the grid’s "Unbound." There are some slight differences in writing code for True DataControl's user events mode and True DB Grid's unbound mode, see True DataControl user event mode and True DBGrid unbound mode.

Note: User events mode is unavailable in True DataControl Lite.
See Also

 

 


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

Product Support Forum  |  Documentation Feedback