September 25th, 2009, 03:56 PM
How to pass dynamic paramter to a Value Convertor in DataGrid DataBinding?
In our datagrid's column data binding, we implemented a Value Convertor to convert the value back and forth. Now we encounter the following problem:
The formula of the value convertor depends on a property (have dynamic values) of a row item. For example:
In the DataGrid we will show employees, each row will show one employee (information include name, country, salary, title, date hired, age, etc.)
The value convertor will convert the salary's unit into local currency (like dollars in US). But the convertor needs to know which country the employee is in so that it can convertor to the local currency and value.
My question is that: Is there a way that I can pass the country property value into the value convertor when creating data binding?
Let me simply be your friend!
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.