How can I export a GridView.DataSource to a datatable or dataset?

后端 未结 7 1161
心在旅途
心在旅途 2020-11-28 08:45

How can I export GridView.DataSource to datatable or dataset?

7条回答
  •  悲&欢浪女
    2020-11-28 09:01

    Assuming your DataSource is of type DataTable, you can just do this:

    myGridView.DataSource as DataTable
    

提交回复
热议问题