A simple question with i had problems several times and i dind´t find a solution so far. For sure it is a peanut for you.
I am trying to bind the Text property of a comboBox to a column in the dataTable. If the column name has no spaces it is working: For example:
Text="{Binding Path= MyColumn, ... }"
If the name has a space in between it doesn´t work: For example:
Text="{Binding Path= My Column, ... }"
There must be something indicating the compiler that the name consists of both words with the space ("My Column"). But i didn´t find it yet.
Thanks
The following delimiters did not work: "" [] {}
What you need is single quotes ''
Text="{Binding Path= 'My Column', ... }"
Text="{Binding Path= 'My Column', ... }"
didn't work for me so I tried the code below that worked fine.
<TextBox>
<TextBox.Text>
<Binding Path="My Column"/>
</TextBox.Text>
</TextBox>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With