VB.Net Datagridview to Datatable
问题 I wanted to create a datatable based from a 5 column datatable. Also, I would like to remove the last column (it is an image column). Basically, what I wanted to have is ( a pseudocode ) datatable = datagridview.datasource I have tried this, but failed: Dim dt As New DataTable dt = TryCast(dgvCarAccidentInjury.DataSource, DataTable) And this, Dim dt As New DataTable(dgvCarAccidentInjury.DataSource) Again I failed. I saw this on the c# column but I don't know how to convert it to vb.net, maybe