Using this event, you can pass a dataset to TEdit.NET that contains the data table (or tables) to edit. By doing so, a connection to a back-end database is not needed. Also see ProvideLookupData and SaveData.
The event handler receives an argument of type ProvideDataViewEventArgs containing data related to this event. The following ProvideDataViewEventArgs properties provide information specific to this event.
| Property | Description |
|---|---|
| DataView | Place a reference a DataView containing the data for the current table in this property. Note that you are allowed to set a custom Filter on the DataView. |
| TableName | The name of the currently selected table in the table editor. Pass a view that holds the data for this table in the DataView property. |
The DataView must be based on a DableTable contained in a DataSet. The TableName property of this DataTable must equal the name requested in the e.TableName argument. If your dataset contains a single table with its default name of 'Table', you can either name it when calling Fill, or rename the table to match the one in the configuration file, like so:
ds.Tables(0).TableName = e.TableName
e.DataView = New DataView(ds.Tables(e.TableName))
Also see ProvideDataViewEventArgs.
TableEditor Class | DVXP.DXTableEditor Namespace