I am creating a list control. I have created a separate column headers control called ColumnHeaders. I have also created a columns
collection that is subclasses from the Collection class. The headers on this control should work just like the headers on a DataGridView or a ListView control.
In a DataGridView there is a public Columns collection. Adding a column to the collection also adds the corresponding header, yet there
is no public reference to the Headers themselves.
So....
The constructor of my Columns collection class receives a reference to the list into a private member called _Parent. This way in the
Add method I can call back into the list.
The problem is that if I make the ColumnHeaders control public, then it's exposed outside the list. If I make it private, it's not available
from the Columns collection via the reference I passed into the constructor.
How did MS do this with their controls?
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people