I am trying to create a "Search" form. The user will select a customer on this form, and prior to the form closing, I would like to select a Customer datarow (strongly typed), so that the previous form that was calling this "Search"form would be able to read this datarow. I can pass standard variables (string, long, etc) just fine as I have done with "Name" in the code below (lines 4-12), but I am not sure how to do this with a strongly typed datarow. If it isn't possible with a datarow but a datatable would work, I could work with that as well.
Public Class frmCustomerSearch
'This works fine
Private m_Name As String = ""
Friend Property Name() As String
Set(ByVal value As String)
m_Name = value
'Would like to do something like the following
Private m_selectedCustomer As String = ""
Friend Property selectedCustomer() As myDataset.CustomerRow
Set(ByVal value As myDataset.CustomerRow
m_selectedCustomer = value