I have a RadGridView with a fixed set of columns that exist at the start of the app.
I'm also adding new columns to the grid dynamically at runtime depending on user input.
Sometimes, I need to clear all the dynamically created columns.
So I quickly came with a system that keeps tracks of the fixed columns. That way, I can clear all columns then re-create the fixed ones.
I also could have the other way around by keeping track of the created columns and just clear these ones.
But in both ways, I think the problem could be more elegantly solved if GridViewColumn had a property like IsRemovable, or a method CanRemove that I could set to true for my dynamic columns, and false for my fixed columns, so that when I clear my columns, I don't have any extra code to write to get the behavior I want.
Does it sound relevant to you? Do you think of another method/workaround?