Click here to Skip to main content
15,797,730 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi all,

I have a list of custom DataGridViewColumns that each have a bool field called "Static" to indicate if it should be used during "quick filter" in my user control. My aim is to present a list of all the custom columns with their "Static" values to the user/designer on the forms editor. The problem is that I cannot figure out a decent way of doing this.

I had a Dictionary property that consisted of the name of the custom column as the key and the "Static" field as the value. That displays correctly in the designer but when changing a value it removes the name from the list and only adds (true/false) where the custom column's name was.

Any ideas as to how to approach this seemingly tricky task would be greatly appreciated.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900