search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Setting DataTextField to an object's property which is string array

Asked by Anonymous
13 years ago.
Hi, I want to databind the daypilot month control to an array of objects. The problem is that my object has a property Name which is a string array, since it stores names for different cultures. How can I specify the datatextfield property of daypilot month to use index 0 of the string array. Thanks in advance
Answer posted by Dan Letecky [DayPilot]
13 years ago.

You will probably have to change the structure of your data source. DayPilot converts the value of the specified field to string using Convert.ToString() call.

The other option is to change it in the source code but you would have to re-apply your patch with each new release.

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.