Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
560
The following key has been defined more than once
posted

Hello,

Another question:

We have a dataset with a datetime column named "TheDate". In the grid we want to show this date in a column along with a week number column and a day of the week column. These columns can all be based on the "TheDate" column from our dataset, but with different converters. When we add these columns with the same key (they all use "TheDate"), we get the error: "The following key has been defined more than once: TheDate.".

I understand that I can add the data column multiple times in our dataset with different names with the same data, but that's not really an option. It would give much overhead as this happens on several places in our application.

It is a pretty common scenario that someone uses the same property on different columns with different converters. Is there a decent solution for this problem?

Arjen