ComponentOne DataObjects for .NET
BeforeFill Event (C1DataSet)

C1.Data.2 Assembly > C1.Data Namespace > C1DataSet Class : BeforeFill Event
Fired before the data set fills with data.
Syntax
'Declaration
 
Public Event BeforeFill As FillEventHandler
public event FillEventHandler BeforeFill
Event Data

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

PropertyDescription
The data set where the event has occurred.  
Filter conditions used to fill the data set.  
Used to detect which table views are being filled in the AfterFill event.  
Remarks
This event is fired on the client before calling the server to fill the data set with data. It is fired both when Fill is called and when the data set is filled at startup due to FillOnRequest = True.

In this event, you can add filter conditions to Filter before passing the request on to the server.

See Also