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

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

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

7条回答
  •  忘掉有多难
    2020-11-28 09:07

    I have used below line of code and it works, Try this

    DataTable dt =  dataSource.Tables[0];
    

提交回复
热议问题