GetColumn(string) using OLVGroup.Text instead of Name
ObjectListView - ListView on caffeine, guarana and steroids
Brought to you by:
grammarian
The ObjectListView.GetColumn(string) method does the lookup on the OLVGroup.Text property instead of the Name property. I believe this to be a design flaw as it causes real problems with localization when the Text value changes. The Name property remains constant and is the stronger model. In fact, even the parameter name indicates that Name is the lookup value.
This also affects the Sort(string) method as it directly calls GetColumn.
I think this is more a feature request than a bug -- the method performs as documented.
If you want to get a column by Name, there is already the
Column[string]method, built into the base class.