I am trying to export a gridview to a csv file but my code seems to be only exporting the header.
Here is my code:
Protected Sub btnCSV_Click(sender As O
I found the solution!! Comment out
gvReports.AllowPaging = False gvReports.DataBind()
in place
gvReports.DataBind()
call function
me.binddata()
that can load data to gridview. binddata is the function name
gridview