[RESOLVED] xaml binding path with forward slash or space in field name
Hi all,
I have a table that contains fields with forward slashes and spaces in the names. when i do drag and drop databinding in a wpf window, any fields without special characters bind just fine, but the spaces and slashes don't display. I've tried enclosing the fields in single quotes '' and in square brackets [] and multiple combinations of the two without success - the minute i enclose in square brackets, all data vanishes from the form, not just the weird field names.
obviously a fix is to rename the field names to not contain those characters - however, this will have repercussions on the production environment that this wpf app will be replacing so if possible, escape sequences and/or syntax for xaml would be highly appreciated if anybody has encountered this before.
The field names in question are 'Province/State' and 'Zip/Postal Code' (without the single quotes of course)
They are bound to standard textboxes on a wpf window
thx
Re: xaml binding path with forward slash or space in field name
here's some more info - after looking back through the xaml at other fields, the ones with spaces in the name are fine - its only the forward slash that is causing the problem.....still researching though and will post results as i find them.
Re: xaml binding path with forward slash or space in field name
Thy this:
Code:
<object Text="{}Province/State"/>
Re: xaml binding path with forward slash or space in field name
I actually wound up going the CLS compliant route and modified the database over two grueling days this weekend and all the code that went with it to remove any spaces from table names or their corresponding field names - not fun......but in the same breath, no more square braces in my code lol :-)