DVXP TEdit.NET 3.0

TableEditor.ProvideLookupData Event

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.

[Visual Basic]
Public Event ProvideLookupData As ProvideLookupDataEventHandler
[C#]
public event ProvideLookupDataEventHandler ProvideLookupData;

Event Data

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.

PropertyDescription
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

See Also

TableEditor Class | DVXP.DXTableEditor Namespace | ProvideLookupDataEventArgs