[]
        
(Showing Draft Content)

C1.WPF.FlexGrid.ColumnValueConverter.SetSource

SetSource Method

SetSource(IDictionary)

Sets the converter source to a dictionary containing keys (objects to store in the column cells) and their corresponding display values (strings to display to the user).

Declaration
public void SetSource(IDictionary dictionary)
Parameters
Type Name Description
IDictionary dictionary

Dictionary containing keys (objects to store in the column cells) and strings to display in the cells.

SetSource(ICollection, bool)

Sets the converter source to a list of values to store in the cell.

Declaration
public void SetSource(ICollection values, bool exclusive)
Parameters
Type Name Description
ICollection values

Values to store in cells and display to user.

bool exclusive

Whether the user can enter values that are not on the list.

SetSource(IEnumerable, string, string)

Sets the converter source to a list of objects that contain the keys (values stored in the column cells) and their corresponding display values.

Declaration
public void SetSource(IEnumerable values, string valuePath, string displayMemberPath)
Parameters
Type Name Description
IEnumerable values

Collection of objects that contain the key and display values for the column.

string valuePath

Name of the property that contains the values stored in the grid.

string displayMemberPath

Name of the property that contains the values displayed in the grid.