Validation.LoadValueList

Validation.LoadValueList method

Loads value list from a DataView object. You can specify the value field and text field of the DataView. Each value and text pair will be combined to one string, with a comma between them.

public void LoadValueList(DataView view, string valueField, string textField, bool valuePrefixText)
ParameterTypeDescription
viewDataViewThe DataView object.
valueFieldStringThe value field name.
textFieldStringThe text field name.
valuePrefixTextBooleanIndicates whether to add a value prefix to each displayed text.

See Also