Dim dt As New DataTable() dt = TryCast(dataGridView1.DataSource, DataTable)
DataTable dt = new DataTable(); dt = dataGridView1.DataSource as DataTable;
BindingSource bsTemp = (BindingSource)MyGrid.DataSource; DataTable dt = (DataTable) bsTemp.DataSource;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)