How to remove the sort link after export gridview to excel
-
Hi, all, I have a gridview with sorting header, after I export it to excel, the links are still there, how can I remove the sort link? I search the internet, somebody suggest using the following codes in Export_Click method: GridView1.AllowSorting = false; GridView1.DataBind(); But after I use this, the generated excel file have no data at all, only some html codes line
....
. Can anybody help me? Thanks!
-
Hi, all, I have a gridview with sorting header, after I export it to excel, the links are still there, how can I remove the sort link? I search the internet, somebody suggest using the following codes in Export_Click method: GridView1.AllowSorting = false; GridView1.DataBind(); But after I use this, the generated excel file have no data at all, only some html codes line
....
. Can anybody help me? Thanks!