N
nagar
I'm using data binding to display the values of a dataset in a form.
Normally I associate the Text property of the UI element to a field of
the dataset.
For a specific field, I need to do the following:
I fill a combobox with custom objects that basically have two
properties (value which is stored in the dataset and description which
is retrieved from the value using a custom algorithm)
1. the dataset field is a string (the value)
2. In the combobox, I need to select an item based on the value of the
dataset (after having appropriately converted from string to int).
How can I do that? Should I use a TypeConverter? How?
Thanks.
Andrea
Normally I associate the Text property of the UI element to a field of
the dataset.
For a specific field, I need to do the following:
I fill a combobox with custom objects that basically have two
properties (value which is stored in the dataset and description which
is retrieved from the value using a custom algorithm)
1. the dataset field is a string (the value)
2. In the combobox, I need to select an item based on the value of the
dataset (after having appropriately converted from string to int).
How can I do that? Should I use a TypeConverter? How?
Thanks.
Andrea