How can I export GridView.DataSource to datatable or dataset?
GridView.DataSource
You should convert first DataSource in BindingSource, look example
DataSource
BindingSource
BindingSource bs = (BindingSource)dgrid.DataSource; // Se convierte el DataSource DataTable tCxC = (DataTable) bs.DataSource;
With the data of tCxC you can do anything.
tCxC