HOW TO CONVERT DATAGRID TO DATATABLE


Function for CONVERSION OF DATAGRID TO DATATABLE

---------------------------------------------------------------------------------------
Public Function CONVRSION_DATAGRID_TO_DATATABLE(ByVal GRID_VIEW As DataGridView) As DataTable
Dim DT As New DataTable
DT = TryCast(GRID_VIEW.DataSource, DataTable)
Return DT
End Function
---------------------------------------------------------------------------------------

No comments: