views:

67

answers:

2

Is there a way to set your column (or row) to a named value rather than a number?

I am about to go add a column to my grid. That means I have to go to every control after the new column and bump up its column number. This is tedious and error prone.

Is there a way that I can bind to a named column? Maybe via resources? (As I write this a static resource is sounding more promising. If anyone has a good example of how to do it give it a post.)

+1  A: 

yes there is, you can use a markup extension. we use it all the time. some smart guy wrote about it here :

smart guys blog

im sure you can modify it to do what you want if it doesnt fit exactly.

Aran Mulholland