Switch to fluid Switch to wfix Switch to fixed

Brandon Truong

This is Brandon Truong ’s blog.

Datagrid Missing Binding Error

Posted by admin on Aug-20-2009

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

I have run into this silly mistake, and it took me 2 hours to figure it out :(

I am writing it down here for my own reference, and if you ever ran into this problem, hope that this can help you fix your problem quickly.

The problem is I had a datagrid column with the Header but not the Binding, for example

<data:DataGridTextColumn Header=”MyProperty” />

This will cause the below error at runtime

Datagrid Missing Binding Error

To fix it, all I had to do is to put the Binding in it

<data:DataGridTextColumn Header=”MyProperty” Binding={Binding MyProperty} />

Hope this helps

No TweetBacks yet. (Be the first to Tweet this post)
http://brandontruong.site90.net/wp-content/plugins/sociofluid/images/digg_32.png http://brandontruong.site90.net/wp-content/plugins/sociofluid/images/reddit_32.png http://brandontruong.site90.net/wp-content/plugins/sociofluid/images/stumbleupon_32.png http://brandontruong.site90.net/wp-content/plugins/sociofluid/images/delicious_32.png http://brandontruong.site90.net/wp-content/plugins/sociofluid/images/google_32.png http://brandontruong.site90.net/wp-content/plugins/sociofluid/images/myspace_32.png http://brandontruong.site90.net/wp-content/plugins/sociofluid/images/facebook_32.png http://brandontruong.site90.net/wp-content/plugins/sociofluid/images/twitter_32.png
blog comments powered by Disqus