Are you getting a NullReferenceException
, Object reference not set to an instance of an object?
you're first line makes row point to null. null doesn't have a property of LabelName. You need to instantiate row to an object of class ODSData_Codename.TrayLabelReferenceRow
You should look at this What is a NullReferenceException and how do I fix it?