R
Randal Chapman
Hi.
I have a custom class which inherits from
ListViewItem.ListViewSubItem.
It works fine to add new subitems to a listview, but when I try and
get them out it tells me that it is an invalid cast. So, it let me add
the custom item but won't let me get it back out? What's wrong here?
Could it have something to do with the fact that the ListViewSubItem
is a subclass?
sViewSubItem = new CustListViewSubItem();
sViewSubItem = (CustListViewSubItem)sViewItem.SubItems;
_Randal
I have a custom class which inherits from
ListViewItem.ListViewSubItem.
It works fine to add new subitems to a listview, but when I try and
get them out it tells me that it is an invalid cast. So, it let me add
the custom item but won't let me get it back out? What's wrong here?
Could it have something to do with the fact that the ListViewSubItem
is a subclass?
sViewSubItem = new CustListViewSubItem();
sViewSubItem = (CustListViewSubItem)sViewItem.SubItems;
_Randal