Hi,
I have assigned the table "tblCustomers" to the DataGridView:
dgv1.DataSource = dsObject.Tables["tblCustomers"] ;
Now i want to reverse this, how do i fetch the DataTable object (NOT THE DATATABLE NAME) that was assigned to the dgv1?
TY
How to fetch the datatable that was assigned to the DataGridView?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Master BillaRank #2,229 · 630 reputationPosted Oct 16, 2009, 6:23 PM EDT
You can try this
DateTable tbl = Gridview1.DataSource as DataTable;thank you