When a custom DataSet is provided using the ProvideDataView event,
this event can be used to fill a data table to populate lookup combo boxes.
The first column of the provided DataTable should contain the ID-value, and the second column
the description for each item in the lookup list.
The event handler receives an argument of type ProvideLookupDataEventArgs containing data related to this event. The following ProvideLookupDataEventArgs properties provide information specific to this event.
| Property | Description |
|---|---|
| ColumnName | The name of the foreign key column |
| DataSet | The dataset that holds current table data |
| IsHandled | Set this property to true if you have handled this event (that is, you have filled the provided LookupTable. |
| LookupTable | This table must be filled with data rows that will be used to populate the lookup combo box for this column. Each row contains two columns: LookupID and LookupValue. The LookupID column is used to match to the current column value, and the LookupValue is used as display value. Note: set the IsHandled property if you have handled this event and filled the table. |
| TableName | The current table name |
TableEditor Class | DVXP.DXTableEditor Namespace | ProvideLookupDataEventArgs