Hi guys,
So it looks like the ListView ColumnHeader does not have something equivalent to the VWG ListViewColumnType property, which lets you indicate the type of data in a column.
Is this intentional? Is there something equivalent?
I need it for several things:
http://screencast.com/t/QXnHsIxi
Thanks
Mitch
Ok, fair enough. I don’t disagree with your decision.
I had started using the Tag property to store this value.
Mitch
Hi Mitch,
The ListViewColumnType is a VWG addition, it’s not present in WinForms. We used WinForm as the base class model while removing all items that would be obsolete on a web platform (like 3D borders) and adding a lot of additional web-css3-html5 features. While our main goal (and necessity) was to replace VWG we also didn’t want to replicate features that have probably been added over the years to cover various shortcomings (at least not from the start).
The ListViewColumnType is a strange property since it doesn’t specify just the data type (it has Icon and Control), it’s only used to render the cells, and the only value type that can be stored in ListViewItem is a always a string anyway – unlike the DGV which supports any type. It looks like VWG tried to use the LV as a DGV with mixed results. The enumeration is a mix of data type and visual widget type (limited to Icon and Control).
You can add a Type property (or any other property) to ColumnHeader or ListViewItem in two ways:
Best,
Luca
Please login first to submit.