Hey all,
I found this collection example in a vb.net book:
Public Class SquareCollectio n
Inherits CollectionBase
Default Property Item(ByVal index As Integer) As Square
Get
Return CType(innerlist .Item(index), Square)
End Get
Set(ByVal Value As Square)
innerlist.Item( index) = Value
End Set
End Property
Public Sub Add(ByVal value As Square)
innerlist.Add(v alue)
End Sub
End Class
All I'm trying to do is add 3 items to the collection and then bind it to a
datagrid. When I run the windows forms app it looks like it loaded the
datagrid but I don't see any values I just see the 3 row headers.
Thanks in advance,
rodchar
I found this collection example in a vb.net book:
Public Class SquareCollectio n
Inherits CollectionBase
Default Property Item(ByVal index As Integer) As Square
Get
Return CType(innerlist .Item(index), Square)
End Get
Set(ByVal Value As Square)
innerlist.Item( index) = Value
End Set
End Property
Public Sub Add(ByVal value As Square)
innerlist.Add(v alue)
End Sub
End Class
All I'm trying to do is add 3 items to the collection and then bind it to a
datagrid. When I run the windows forms app it looks like it loaded the
datagrid but I don't see any values I just see the 3 row headers.
Thanks in advance,
rodchar