So I asked this question: HERE
and I received a great solution to my issue. However, I'm now confused on how to retrieve that same list collection and bind it to a gridview control.
Basically, how do I get all of the Box properties out of Boxes and bind to gridview. along with properties that are exposed through Shipping class?
The code below is the experts post which solved my initial question and I'd reposting this code to continue with the example for better understanding.
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim oShipping As New Shipping()
Public Class Shipping
Private _boxes As List(Of Box)
Public Property Boxes() As List(Of Box)
Set(ByVal value As List(Of Box))
_boxes = value
Public Sub New()
_boxes = New List(Of Box)
Public Class Box
Private type As String
Public Property BoxType() As String
Set(ByVal value As String)
type = value
Public Sub New(ByVal type As String)
BoxType = type