ComponentOne DataObjects for .NET
AfterFetch Event

C1.Data.2 Assembly > C1.Data Namespace > C1DataSetLogic Class : AfterFetch Event
An AfterFetch event is fired after a table view has been fetched from the database. Also, after all AfterFetch events have been fired for individual table views, an AfterFetch event is fired for the whole fetch session, with the TableView argument set to null (Nothing in Visual Basic). Use this event to execute code after all table views have been fetched.
Syntax
'Declaration
 
Public Event AfterFetch As FetchEventHandler
public event FetchEventHandler AfterFetch
Event Data

The event handler receives an argument of type FetchEventArgs containing data related to this event. The following FetchEventArgs properties provide information specific to this event.

PropertyDescription
For a bound or SQL-based table, the IDbCommand object containing the generated SQL SELECT statement. This argument is null for an unbound table.  
Filter conditions used to fill the data set. These are all filter conditions for all table views in the data set. You need to extract the filter conditions for the particular table view from this argument.  
The reader object providing the fetched data.  
The generated SQL SELECT statement.  
Success or failure status of the operation. In events occurring before operation and allowing to change the status argument, user code can change the status to indicate whether to proceed with the operation, skip or abort it.  
Returns the table collection of the data set being populated.  
The table view being populated.  
Returns the table views collection of the data set being populated.  
See Also

Reference

C1DataSetLogic Class
C1DataSetLogic Members
Bound, SQL-Based and Unbound Tables