I have a grid in WPF, auto-generating columns. How can I dynamically hide columns using data annotations?

I thought of having a property in my model to specify whether the column is visible, but I'm not sure how to do it.

My model, bound to the grid:

```
public class Template
{
        public string County { get; set; }

        public string Operator { get; set; }

        public string Field { get; set; }
}

```