Get Object from Datatable

I created several columns via build datatable. One column was defined with data type TerrminalConnection. So how would I extract the TerminalConnection if datatable was “dt” and columname was “tc”?

tc2 = dt[row].[tc])

Hi @Chris_Surati

tc2 = dt.Rows.Item(YourRowNumber)(“tc”)



1 Like

Hi @AndresTarazona

I have tried that and as the the image below shows an error of implicit conversions from object to terminalconnection. So how would I create a converstion from object to termincalconnection?

Thanks in advance


give a try on direct cast
DirectCast( dt.Rows.Item( YourRowNumber )(“tc”),TerminalConnection)



The DirectCast worked!

Thanks to everyone!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.