Menu

#160 GetColumn(string) using OLVGroup.Text instead of Name

C#_v2.9
wont-fix
group (1)
2
2016-04-23
2016-04-21
David Hall
No

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.

Discussion

  • Phillip Piper

    Phillip Piper - 2016-04-23

    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.

     
  • Phillip Piper

    Phillip Piper - 2016-04-23
    • status: unread --> wont-fix
     

Log in to post a comment.